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.
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.
Use the strtotime() function ... e.g.: $new_date = strtotime("Jan 15 2005 12:00AM");
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.