PHP代码:
echo date("c"); //out put like this 2012-06-19T20:37:44+05:30
echo date("d M, Y"); //out put "Jun 19,2012"
$time=date("c");
echo date("d M, Y",$time);// This is not working. What could the reason be?
我的要求是将 ISO8601 格式转换为“d M,Y”。我需要它以这种格式与timeago jQuery 插件一起使用。