jemz — 2013-01-23T14:06:18-05:00 — #1
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.
litebearer — 2013-01-23T14:11:28-05:00 — #2
hint: look closely at the variable used in the strtotime (typo?)
also you have not double quoted the format
starlion — 2013-01-23T22:37:56-05:00 — #3
jemz — 2013-01-23T22:52:11-05:00 — #4
Hi StarLion,thank you for correcting me my mistake...it's working now...:)
jemz — 2013-01-23T22:52:48-05:00 — #5
Hi litebearer, My mistake,thank you for correcting me.