Page 1 of 1

Regex filter needed for date

Posted: Sat Jun 27, 2009 10:52 am
by ViserExcizer
January 1, 2008

June 25, 2009 - 8:24 am

I need to break down the first date into 3 arrays, Month, Date, year.
And the second one the same, and the time could be ignored.
The data fetched from the database is varchar, and I need a preg_match fucntion to do this. Thanks alot. Im a newbie.

Re: Regex filter needed for date

Posted: Sat Jun 27, 2009 11:04 am
by danielrs1
You can try the function strtotime()