Hey guys, I am a newb to using dates and time stamps, Im hoping someone could help me out here.
I have a php table which I have a timestamp field in, I use the MYSQL NOW function to put in the current time stamp.
Which looks like: 20040608230338
I need to convert that to a date string. But my code is outputing
Monday January 18 2038
$date is set to = 20040608230338
My code is this:
$date2=date('l F j Y', "$date");
print "$date2";
Any pointers would be very much appreciated, thanks..
gp