Technology - Laravel8 How can I show value date-time in field?
I tried to do this in this way, but it wasn't successfull.
{!! Form::input('datetime-local', 'startdatetime', $auction->startdatetime, array('class' => 'form-control')) !!}
Example on value of ($auction->startdatetime) => "2021-01-24 08:00:00"
Try this:
It will convert the date into d-m-Y or whatever format you have given.
Note: This solution is a general solution that works for PHP and any of its frameworks. For a Laravel specific method.
Thanks :)