Edit AllPages

What would be the best way to get the date for a certain day of the week? In other words, if I want to calculate the date for the next Monday, how should I do this? Thanks,


Notice that dayOfWeek==0 means Sunday.

– DenisGryzlov

Aha, thanks. I feel really stupid. :p