문제

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..?

도움이 되었습니까?

해결책

All you need is this:

 date('m/d/Y',$time)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top