In a message dated 1/21/2003 12:15:36 AM Eastern Standard Time, [EMAIL PROTECTED] writes:
> I am writing a cgi script to run as a cron job. when > it runs i need the date of 'one year ago today' in the > format 'YYYY-MM-DD' to be stored in a variable to be > used later in the script. I am about as dumb as wet > dirt when it comes to cgi. Can someone please help me > with this? In a message dated 1/21/2003 12:15:36 AM Eastern Standard Time, [EMAIL PROTECTED] writes: > I am writing a cgi script to run as a cron job. when > it runs i need the date of 'one year ago today' in the > format 'YYYY-MM-DD' to be stored in a variable to be > used later in the script. I am about as dumb as wet > dirt when it comes to cgi. Can someone please help me > with this? @time = localtime; $time = $time[5] + 1899 . "-" . $time[3] . "-" . ($time[4] + 1); print $time;