jcadima
9/9/2017 - 8:12 PM

Format Dates in Blade VIEW

Format Dates in Blade VIEW

https://laracasts.com/discuss/channels/laravel/how-to-format-a-carbon-date-inside-blade?page=1
https://laracasts.com/discuss/channels/general-discussion/use-carbon-at-blade-template?page=1

// 01-01-2018
{{ \Carbon\Carbon::parse($task->created_at)->format('m-d-Y') }}


// Example to show 2015-12-19
{{ \Carbon\Carbon::now()->toDateString() }}