Problem on my date

Hi, I am having problem on DATE,the date is stored in the database is like this 2012-05-06,now i want to retrieve the date and display on the textfield.but the format will be like this Feb/02/13.

I tried my code but it’s not working.

lets assumed that i have successfully queried my database.

     $mydate = $row['date'];

     $mydate = date(M/dd/yy,strotime($mdate));

Thank you in advance.

hint: look closely at the variable used in the strtotime (typo?)
also you have not double quoted the format


Hi StarLion,thank you for correcting me my mistake…it’s working now…:slight_smile:

Hi litebearer, My mistake,thank you for correcting me. :slight_smile: