php - Get Date from Datetime String -
this question has answer here:
this string tue, 20 aug 2013 10:45:05 , want string in date format :
2013-08-20.
guys please help.
thanks
try this,
$d=date('y-m-d',strtotime('tue, 20 aug 2013 10:45:05')); echo $d;
Comments
Post a Comment