what does the html look like in the browser (view source)
May 11, 2022
6
Level 2
The specified value does not conform to the required format yyyy-MM-dd
Hello, I have a date input and am setting the value of it using data from the database table here is my code
<input type="date" name="exit_time" id="exit_time"
value="{{ date('Y-m-d', strtotime($book->exit_time)) }}">
for some reason, it shows me the error
The specified value does not conform to the required format yyyy-MM-dd
I've tried echoing out the code
{{ date('Y-m-d', strtotime($book->exit_time)) }}
and this is the returned value
2022-03-19
and it should be a valid date.it's not showing in the input
Level 122
Is the error in the console from some date picker library?
Do you have more than one date input?
Please or to participate in this conversation.