How can i get the week day in text from input date in Laravel
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 with an error?
$today=$request->date;
$week_day=$today->format('l');
dd($week_day);
1 Answer
1
Can you use Carbon
CarbonCarbon::parse($today)->format('l')
@ParthajyotiSarma, why you can't user Carbon?
– NicuVlad
Aug 27 at 10:32
becouse, i need input date value
– Parthajyoti Sarma
Aug 29 at 6:11
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
i don't need carbon value
– Parthajyoti Sarma
Aug 27 at 9:41