Rick Posted May 22, 2007 Share Posted May 22, 2007 hi people, i thought i'd throw this in as someone may have done it before... is there a quick n dirty way to find out what the date is of monday next week, irrespective of the day we're currently on? I'm sure someone mustve had to do it before, if not then i'll have to figure it out. Thanks for any help guys. Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 22, 2007 Developers Share Posted May 22, 2007 hi people, i thought i'd throw this in as someone may have done it before... is there a quick n dirty way to find out what the date is of monday next week, irrespective of the day we're currently on? I'm sure someone mustve had to do it before, if not then i'll have to figure it out. Thanks for any help guys.This example always gives the next Monday date ... when today is Monday it will return the Next weeks Monday as wel #include<date.au3> $iWeekday = _DateToDayOfWeekISO (@YEAR, @MON, @MDAY) $NextMonday = _DateAdd("d",7-$iWeekday,_NowCalcDate()) ConsoleWrite('Next Monday is ' & $NextMonday & @crlf ) 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. Link to comment Share on other sites More sharing options...
Rick Posted May 22, 2007 Author Share Posted May 22, 2007 aaaw thanks JdeB, it was doing me head in a bit and knew it'd be worth asking instead yer a star, thanks. Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
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