-3

This is my String Tue, 20 Aug 2013 10:45:05 and i want to this string in Date Format Like this :

2013-08-20.

Guys Please help.

Thanks

4

2 回答 2

1

像这样的东西:

echo date('Y-m-d', strtotime('Tue, 20 Aug 2013 10:45:05'));
于 2013-08-26T07:13:17.010 回答
0

尝试这个,

$d=date('Y-m-d',strtotime('Tue, 20 Aug 2013 10:45:05'));
echo $d;
于 2013-08-26T07:13:15.650 回答