BrendanB Posted June 15, 2007 Posted June 15, 2007 (edited) I'm looking at using the _DateAdd function to increase a date by one day, each time a loop in my script executes. My question is, wether or not the "d" (day) variable for the function will also increase the month by 1, when the last day of the previous month is reached? Basically I'm looking to run a continuous loop, that begins on January 1, 2003 and ends on September 1, 2004. Each time the loop runs I need the date to increment by one day until it reaches the endpoint. Edited June 15, 2007 by BrendanB
Developers Jos Posted June 15, 2007 Developers Posted June 15, 2007 (edited) I'm looking at using the _DateAdd function to increase a date by one day, each time a loop in my script executes. My question is, wether or not the "d" (day) variable for the function will also increase the month by 1, when the last day of the previous month is reached?Yes it will add one day to the date and when its Jan 31 the new date will be Feb 1. Edited June 15, 2007 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
BrendanB Posted June 15, 2007 Author Posted June 15, 2007 Yes it will add one day to the date and when its Jan 31 the new date will be Feb 1.Very cool. Thank you!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now