[PHP] SOLVED: RE: [PHP] storing date in datetime column

2007-01-09 Thread afan
WORKS PERFECT! Thanks Brad! -afan > [EMAIL PROTECTED] wrote: >> hi, >> $date = "January 8 2007 11:23 pm"; >> and have to store it on db in datetime column as -mm-dd HH:ii:ss. >> Is there any function that will "translate" $date in format I >> need to store it in DB? >> >> Right now I was thin

RE: [PHP] storing date in datetime column

2007-01-09 Thread Brad Fuller
[EMAIL PROTECTED] wrote: > hi, > $date = "January 8 2007 11:23 pm"; > and have to store it on db in datetime column as -mm-dd HH:ii:ss. > Is there any function that will "translate" $date in format I > need to store it in DB? > > Right now I was thinking to do like this: > > $date_new = explo

[PHP] storing date in datetime column

2007-01-09 Thread afan
hi, $date = "January 8 2007 11:23 pm"; and have to store it on db in datetime column as -mm-dd HH:ii:ss. Is there any function that will "translate" $date in format I need to store it in DB? Right now I was thinking to do like this: $date_new = explode(' ', $date); switch($date_new[0]) { ca