Level 75
value="{{ date('Y-m-d', strtotime($game->initial_release)) }}"
It has to be value and not vlaue.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I am making update form and I want to update a row in my db the update also except date I am trying to set the date value that already exists in my db row to the HTML input date but for some reason it's not working this is how I am trying to set the date
<input class="form-control" type="date" name="initial_release"
vlaue="{{ date('Y-m-d', strtotime($game->initial_release)) }}">
this function
{{ date('Y-m-d', strtotime($game->initial_release)) }}
return 2019-09-26
but HTML input is empty nothing shown in it and when I update the row it reset the date to null
value="{{ date('Y-m-d', strtotime($game->initial_release)) }}"
It has to be value and not vlaue.
Please or to participate in this conversation.