regex - Date format in php using regular expression -


hai, can me change "wed sep 29 14:47:37 +0000 2010" "sep 29,2010 @ 2:47pm" using regular expression in php?

you can use strtotime. no need regular expression.

date('m j, y \a\t g:i a', strtotime('wed sep 29 14:47:37 +0000 2010')); 

Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -