<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>
在Laravel控制器关闭时,为什么会出现错误?
$today=$request->date;
$week_day=$today->format('l');
dd($week_day);
答案 0 :(得分:0)
您可以使用Carbon
\ Carbon \ Carbon :: parse($ today)-> format('l')