到目前为止的时间戳

wal*_*ter 1 php date

何我转换:

2010-12-24 11:39:43

至:

24/12 11:39

谢谢.

Jan*_*čič 5

这应该是诀窍:

$newFormat = Date ( 'd/m H:i', StrToTime ( '2010-12-24 11:39:43' ) );
Run Code Online (Sandbox Code Playgroud)

您使用StrToTime将日期的字符串表示形式转换为时间戳.然后,将该时间戳提供给Date函数,该函数将日期格式作为第一个参数.