php convert text date
Posted: Wed Sep 26, 2012 1:52 pm
Hi,
i would like to convert a text date like "2012 July 11 16:00"
To a SQL conform date. (JJJJ-MM-DD)
I tried it with
But always gives me 1970-01-01.
i would like to convert a text date like "2012 July 11 16:00"
To a SQL conform date. (JJJJ-MM-DD)
I tried it with
Code: Select all
date('Y-m-d', strtotime('2012 July 11 16:00');