How to Format a Carbon Date to get the Full Month

Vince picture Vince · Mar 18, 2016 · Viewed 38.4k times · Source

I am using this code:

 Carbon\Carbon::parse($quotation[0]->created_at)->format('d M Y')

The output is:

10 Mar 2016

I want:

10 March 2016

I have looked at the Carbon docs and googled high and low, and I can not find it anywhere.

Answer

Krzysztof Sikorski picture Krzysztof Sikorski · Mar 21, 2016

If I understood you correctly:

 Carbon\Carbon::parse($quotation[0]->created_at)->format('d F Y')

By the way, I found it in php date docs, Carbon uses it to generate date. http://php.net/manual/pl/function.date.php