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
Post a Comment