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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -