Jump to content

Whats the date next monday?


Recommended Posts

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

  • Developers

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...