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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners