
DATE$ is a pseudo-variable that can be queried to get the current date as string. The returned string contains year, month and day separated by slashes:
YYYY:MM:DD
DATE$ can only be read. Any write attempt is prohibited and ignored or rejected by the compiler.
Simply prints the current date:
outmode -2
print DATE$
end
There's no function to set the date from a BASIC program. Use the command line interface if you want to set a new time. See also the TIME$ page.