dimanche 26 août 2018

how can i get the week day in text from input date in laravel

<div class='col-md-2'> <div class='form-group'> {!! Form::label('date', 'Select Date')!!} {!! Form::input('datetime-local','date',Input::get('date'),['class'=>'form-control'])!!} </div> </div>

in the laravel controller are down, why it comes error

    $today=$request->date;

    $week_day=$today->format('l');

    dd($week_day);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire