Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好的,我有一个生日表格,可以使用 mktime 保存时间,所以当它保存在 mysql 中时,它会显示类似 634608000 的内容。我如何将其转换为 mm/dd/yyyy 格式,以便当它以 html 显示时它将是可读的..?
你只需要这样:
date('m/d/Y',$time)