Jump to content

Recommended Posts

Posted

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!!

  • Developers
Posted

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.
  :)

Posted

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!!

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...