ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: getNextSpecificDayOfWeek

getNextSpecificDayOfWeek(D, d) returns the time and date structure corresponding to the firsts day d (1 = monday, ..., 7 = sunday) after the date and time given by the date and time structure D.

getNextSpecificDayOfWeek(D, d, n) returns the time and date structure corresponding to the firsts day d (1 = monday, ..., 7 = sunday) after the date and time given by the date and time structure D plus n entire weeks.

Example:

getNextSpecificDayOfWeek(encodeDate(2010, 06, 23), 7)

year: 2010
month: 6
day: 27
weekOfYear: 25
dayOfYear: 178
dayOfWeek: 7
hour: 0
minute: 0
second: 0
millisecond: 0