mardi 22 janvier 2019

Format Date value from database Laravel

I have a column named birth_date in MySQL database with a type of date

enter image description here

Now, I would like to show it in my view in this format -- May 23, 2008

I tried:



it showed: ErrorException (E_ERROR) Call to a member function format() on string

I also tried



it showed: ErrorException (E_ERROR) A non well formed numeric value encountered

Can anyone assist me with the right formatting code?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire