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"
I solved it like this.
In controller class..
`$starttime = strtotime($auction->startdatetime);
$auction->startdatetimeformat = date('Y-m-d', $starttime)."T".date('H:i', $starttime);`
In view file..
{!! Form::input('datetime-local', 'startdatetime', $auction->startdatetimeformat, array('class' => 'form-control')) !!}