Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print date loop

Status
Not open for further replies.

cb49747

MIS
Apr 23, 2002
181
US
Ok,

I have a date that will change on the user, but will be in this format 20060201 which is Feb 1 2006. I than run a loop any where from 1 to 360 times. Every time I run the loop I want the date to advance one month. I know I could do this by grabing the month (02) and than add one every loop and when it gets to 13 change to 1 and add one to the year.

However I was hope there was some date function in perl that would do this for me.

any ideas?
 
there are a lot of date options available in perl, but I believe your way is going to be as good as any of them because what you want to do is nothing complicated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top