Hi there,
Say if I have a time stamp of 1020267120. (12:32 pm, Wednesday, May 1st, 2002).
How can I get $month and $day out of just that time stamp.
I just want $month=5; and $day=1;
Thanks,
-dr
Use the date() function...
$now=time(); $month=date(m,$now); $day=date(d,$now); print "This is the $day day of the $month month.";
Look at the manual for various formatting options.
http://www.php.net/manual/en/function.date.php