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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -