Date format in Laravel

Asked

Viewed 34 times

1

I’m using Mysql as a database for a project developed with Laravel. However, I need to convert the default date format (YYYY-MM-DD) to the "DD-MM-YYY" format. How can I make this conversion?

  • 1

    Your question seems to have some problems and your experience here in Stack Overflow may not be the best because of this. We want you to do well here and get what you want, but for that we need you to do your part. Here are some guidelines that will help you: Stack Overflow Survival Guide in English.

1 answer

4

try like this:

date("d/m/Y",strtotime($data))

maybe this will solve

Browser other questions tagged

You are not signed in. Login or sign up in order to post.