Jump to content

Recommended Posts

Posted (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 by BrendanB
  • Developers
Posted (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 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.
  :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...