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.
我必须将以下日期格式转换为 mdY 格式。我怎样才能实现它? $date='Thu, 20 Jun 2013 09:09:52 UTC'我想在查询中传递的是6-20-2013
$date='Thu, 20 Jun 2013 09:09:52 UTC'
6-20-2013
请让我知道一些快速技巧。
谢谢
date('m-d-Y', strtotime('Thu, 20 Jun 2013 09:09:52 UTC'))