When editing a date vale with the HTML date picker in a livewire component always set the models format to ‘yy-m-d’.

For example:- if the value you need to pre-populate is $tools->expiry_date set it to the correct format using

$this->expiry_date = $tool->expiry_date->format('yy-m-d');

Last modified: 02/02/2021

Comments

Write a Reply or Comment

Your email address will not be published.