Re: set date variable and range - SOLVED

2002-11-12 Thread John W. Krahn
Shaunn Johnson wrote: > > --Howdy: Hello, > ## get first of this month as anchor ## > > my $day_now=(localtime())[3]; > my $firstday=$day_now - ($day_now-1); The first day of the month is always 1 so there is no need to calculate it! my $firstday = 1; > my $month_now=(localtime())[4]+1; > m

RE: set date variable and range - SOLVED

2002-11-12 Thread Johnson, Shaunn
--Howdy: -- // This is mostly for archives sake just in case I forget how // -- // I did this // --To recap, the purpose of this exercise was to create a few date variables to use --in an SQL script. I wanted the dates to have a 3 months span every time --I run the script (which would be once a