Time format for Laravel 6 in view

Home Forums Laravel Time format for Laravel 6 in view

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1416
    Mofizul
    Keymaster

    What is the time format in Laravel 6 to display in frontend?

    #1417
    Mofizul
    Keymaster

    {{ date('d-m-Y', strtotime($post->created_at)) }}

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.