Did you set the start column in the model to be a carbon instance? If so its just
$event->start->toDateString();
Or what ever format you want.
Also use Carbon::parse($start).
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How do I convert datetime to a readable date?
View
{{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $event->start)->format('Y-m-d') }}
I wanna convert this 2016-04-14 to this April 14, 2016. is it possible?
Controller
public function getAcads()
{
$events = Calendar::orderBy('start','ASC')->get();
return view('auth.acads',compact('events'));
}
I wanna convert this 2016-04-14 to this April 14, 2016. is it possible?
Use 'F j, Y' for the format string instead of 'Y-m-d'
Carbon / DateTime objects use the same formats as the php date function.
http://php.net/manual/en/function.date.php
Please or to participate in this conversation.