Forum Moderators: coopster
I have a date in the format of "YYYY-MM-DD HH:MM:SS", lets say its "2007-03-07 07:25:56".
I am trying to output this stamp into "March 7th".
So I'm using the following code:
date("F jS","2007-03-07 07:25:56");
This code isn't working, which made me realize I needed to convert my date into seconds from 1970. Something like the following pseudo code:
date("F jS",secondsfrom1970("2007-03-07 07:25:56"));
What is the best way to convert my date time to seconds?
Thank you