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.
好的,所以我有一个自定义日期字段设置为“m/d/YH:i:s”,我想将其呼应为“M j”。我该怎么做呢?
如果它以 m/d/YH:i:s 格式存储,那么您可以在模板中回显日期的任何位置执行此操作:
echo date('M j',strtotime($custom_date));