Wednesday, April 12, 2017

Date update in Laravel

I would like to change the value of the date field at the time of a data edit. I can bring all the values ​​except the date.

I'm using the Form:: Laravel:

{!! Form::label('dtemissao','Data de Emissão') !!}
{!! Form::input('date','dtemissao',$FinContaspagar[0]["DtEmissao"]->format("d/m/Y"), ['class' => 'form-control']) !!}<br />

I'm using the $FinContaspagar[0]["DtEmissao"]->format("d/m/Y") to change the default value of dd/mm/yyyy, but I was not successful in changing the value. Does anyone have a solution?



via Felipe Nunes

Advertisement