10 REM PC-BASIC test
20 REM DATE$ syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 1000
50 DATE$
60 DATE$=10
70 DATE$="10"
80 DATE$="10" LPRINT
90 DATE$ "10"
100 DATE$ "10-01"
110 DATE$="10-1"
120 DATE$="10-01-89"
130 DATE$="10/01/89"
135 DATE$="10/1/89"
140 DATE$="LATE"
999 END
1000 PRINT#1, ERR, ERL
1010 RESUME NEXT
