When you want to change the format for date&time in Laravel blade files, you can use "format" method. The conditions are as below. Column name is "updated_at" and its data type for this column is timestamp (ex: "2022-03-22 04:55:01") -In blade file, iterate the variables that is passed by the controller (ex:$post).

"Format" method from Carbon class works, too. You create a carbon instance by "Carbon\Carbon::parse()," and then specify the format('Y/m/d') by format method.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners