Abdullah_Iftikhar's avatar

Get the day name from the date in laravel?

I want to get the name of the day from the given date.

any builtin function in PHP or laravel "Carbon"

explanation: like Carbon::tomorrow()->format('m-d-Y') this I want to know the day name like monday,tuesday etc

0 likes
8 replies
MichalOravec's avatar

This return day name of your date

Carbon::tomorrow()->format('l');

Carbon use same format as php date, documentation here.

DenMette's avatar

Hi all

{{ $article->publish_date->translatedFormat('l j F Y') }}

// Results:
 woensdag 8 april 2020

Sorry it's in dutch ... but it should work

Please or to participate in this conversation.