Problems? Is your data what you think it is? | |
PerlMonks |
Re: Getting Weekly Datesby oakley (Scribe) |
on Mar 09, 2001 at 01:01 UTC ( [id://63099]=note: print w/replies, xml ) | Need Help?? |
Like Coyote said, use Date::Manip - it'a a darn good module and it will do alot more than what you would probably expect. Now though - to get a list of the first Monday in every month starting Jan 2001 - Dec 2001, I used the following snippet of code and got every single one: This prints out: And yes, I did verify the dates :) Update:You may want to use substr($day,0,8); to get the first 8 characters which is the date - anything after that is the time - oakley Embracing insanity - one twitch at a time >:)
In Section
Seekers of Perl Wisdom
|
|