Welcome Guest, you are in: Login

Fruit Of The Shed

Navigation (MMBasic)






Search the wiki

»


Quick Day Of Week (and tiny too)

Page discussion for Quick Day Of Week (and tiny too)
yes the following confirms it.2017/08/04 07:46 by CaptainBoing
With a wrapper to make it read nicely

> list
 Print dowDay$("28-02-2000")
 Print dowDay$("29-02-2000")
 Print dowDay$("01-03-2000")

...

> RUN
Tue
Wed
Wed

2000 was a leap year2017/08/04 07:59 by CaptainBoing
dates before 01/03/2000 will be in error (+1 day).

I can't quite figure out why, but the calculation isn't taking into account that 2000 was a leap year (unlike most century years), but it looks like it should.

use with caution - it's fine for everything after that date