I have in my database the date of birth of a user, but I want to format that to something like 27 March 2000. I already have the date of registered and I can format that, but if I try to format the date of birth it gives me the following error: Call to a member function format() on string
This code I used to show and format the date of birth of a user:
{{ucfirst(Auth::user()->created_at->format("M d Y"))}}
I tried to use this code for the date of birth because it is in a table with all the users:
{{ucfirst($user->birthdate->format("M d Y"))}}
This is the database structure: http://i.stack.imgur.com/Agchg.png