develooper Front page | perl.beginners | Postings from January 2002

Date stuff

Thread Next
From:
Scott Taylor
Date:
January 9, 2002 15:08
Subject:
Date stuff
Message ID:
5.0.2.1.0.20020109150409.01e56820@mustang
Can anyone tell me how I can set a variable to a date, then subtract x 
number of days from it and output the new date?  I can't seem to find it 
anywhere.

IE:
my $thedate = "01/09/01";
my $newdate = $thedate - (1400 * 7);  # (of course this doesn't work)

Thanks.


--
Scott Taylor
Systems Administrator
DCT Chambers Trucking Ltd.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About