[futurebasic] Re: [FB] Day of the week routine

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: BMichael@...
Date: Fri, 15 Oct 1999 22:19:16 EDT
>I discovered this goodie, which could be useful to many of us, amongst the
>FB archives. It appears to be exactly what I'm looking for, but I can't
>find the key to extracting the day. Clues, anyone?

Saturday is 0, Sunday is 1, Monday is 2, etc.

Add this at the bottom to check:

WINDOW 1
CLS
PRINT
day% = FN DayOfWeek(10,15,1999) 'today - a Friday
PRINT day%
TRON BREAK
WHILE NOT MOUSE(_down)
WEND

I'm not sure what the "range" of the function is; I only tested it for 
1999 and part of 2000. I'd be careful to run a bunch of "known" dates 
through it, especially past 2000, before relying on it.

Bill