Here is a 2068 program that will provide that unanswered question, on what day of the week were you born?
It is a good group or party program that allows people to input their birth date and out comes the day of the week. Of course, it can be used for any date to find out what day it falls on.
The only input to watch out for is the month first (1-12), then the day (1-31), and then the year (xxxx). Note that the year must be later than 1752.
Dick Wagner
90 REM Program to calculate the day of the week
100 REM For 2068, and IBM Clones with GWBASIC or BASICA, and maybe TS 1000
105 REM for GWBASIC, LET is not required. LINE 110 is changed to DIM D$(7)
110 DIM D$(7,9)
120 LET D$(1)="Monday"
130 LET D$(2)="Tuesday"
140 LET D$(3)="Wednesday"
150 LET D$(4)="Thursday"
160 LET D$(5)="Friday"
170 LET D$(6)="Saturday"
180 LET D$(7)="Sunday"
190 PRINT "Date (MM,DD,YYYY)?";
200 INPUT M,D,Y
205 IF D<=0 THEN GO TO 640
210 GO SUB 500
220 PRINT D$(Z)
230 GO TO 190
500 IF Y<=1752 THEN GO TO 620
510 LET N=INT (.6+1/M)
520 LET L=Y-N
530 LET P=M+12*N
540 LET C=L/100
550 LET Y1=INT (C)
560 LET Z1=INT (C/4)
570 LET Z3=INT (5*L/4)
580 LET Z4=INT (13*(P+1)/5)
590 LET Z=Z4+Z3-Y1+Z1+D+5
600 LET Z=Z-(7*INT (Z/7))+1
610 RETURN
620 PRINT "The year must be after 1752"
630 GO TO 190
640 REM add 650 END if for GWBASIC
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.