Jump to content
Sign in to follow this  
BrendanB

Help with date increase

Recommended Posts

BrendanB

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

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
BrendanB

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!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×