Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I would like to convert something like "2020-01-01 00:00:00" into "Wed, Jan 1, 2020". Is there a way to do this in laravel?
Try this
date('D, M j,Y', strtotime($user->created_at));
Laravel uses Carbon library out of the box, so you can get what you want just using it:
{{ $user->created_at->toDayDateTimeString() }}