how to convert time(mktime) to date(mm/dd/yyyy) in php?

kester martinez picture kester martinez · Jun 10, 2011 · Viewed 15.6k times · Source

ok i have a birthday form that will save as time using mktime, so when it is saved in mysql, it will show something like 634608000.. how can i convert it to mm/dd/yyyy format so that when it is displayed in html it will be readable..?

Answer

datasage picture datasage · Jun 10, 2011

All you need is this:

 date('m/d/Y',$time)