190 REM The following is a short subroutine which can be included in any BASIC 200 REM program to convert the system date and time to more standard and usable 210 REM formats. For example, "01-01-85" will become "January 1, 1985," and
220 REM "22:15" will become "10:15 P.M." To use the subroutine simply GOSUB
230 REM to it once during the program, and then use the new date and time data
240 REM which will be stored as DATE1$ and TIME1$ respectively. To incorporate
250 REM the subroutine into a program, use only lines 10000 and above. The rest
260 REM of the program is just a short demonstration of what the program will
270 REM do. I hope this subroutine is useful to you.
280 REM
290 REM
300 REM DEMONSTRATION ROUTINE
310 GOSUB 10000
320 PRINT "CONVERTED DATE IS: ";DATE1$
330 PRINT "CONVERTED TIME IS:";TIME1$
340 END
350 REM
360 REM
370 REM
10000 REM DATE & TIME SUBROUTINE
10010 DIM DATE3$(12)
10020 DATE1$=DATE$
10030 DATE2$=LEFT$(DATE1$,2)
10040 DATE%=VAL(DATE2$)
10050 RESTORE 10090
10060 FOR A%= 1 TO 12
10070 READ DATE3$(A%)
10080 NEXT A%
10090 DATA JANUARY,FEBRUARY,MARCH,APRIL,MAY,JUNE,JULY,AUGUST,SEPTEMBER,OCTOBER,NOVEMBER,DECEMBER