hey a bit of a newbie question,
i want to add a date to my webpage. i can do using the code below but i would like it in a different format.
i would like Thu, 05 Jun 2003 20:00:26 GMT to come up as Thursday, 05 June 2003. i know i can do this using loads and loads of if statements...i'm just wondering if there is a simple way to do it.
or
my ($sec, $min, $hour, $day, $mon, $year, $dweek, $dyear, $daylight) = localtime(time());
thanks
Pedge
i want to add a date to my webpage. i can do using the code below but i would like it in a different format.
i would like Thu, 05 Jun 2003 20:00:26 GMT to come up as Thursday, 05 June 2003. i know i can do this using loads and loads of if statements...i'm just wondering if there is a simple way to do it.
Code:
$timestring = time2str($time); or
my ($sec, $min, $hour, $day, $mon, $year, $dweek, $dyear, $daylight) = localtime(time());
thanks
Pedge