tags:

views:

82

answers:

2

i am trying to write a program but i have no idea what to with parsing a date in this format into into a date stamp

Jan 15 2005 12:00AM

i do not care about the 12:00AM as all the records have that 12:00AM appended to them.

+2  A: 

Use the strtotime() function ... e.g.: $new_date = strtotime("Jan 15 2005 12:00AM");

Jess
+6  A: 

Use strtotime() to convert the date to unix timestamp. You can also use this timestamp with date() function to format it in any way you want.

Stiropor