开发者

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

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开发者_如何学C to mm/dd/yyyy format so that when it is displayed in html it will be readable..?


All you need is this:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜