Skip to content

The getDate() command

Command Summary Command Syntax Calculator Compatibility Token Size
Returns the current date set on the calculator and returns it in list format. getDate() This command requires a calculator with AMS version 2.07 or higher (it will also work on any TI-89 Titanium or Voyage 200 calculator) 3 bytes

N/A

The getDate() command

The getDate() command checks the date that the calculator is set to, and then returns it in a list format. The list will always be in the format {year, month, day}. To change this list to another format, you can use the closely related 68k:getDtStr() option, which just returns the date in a string format, not as a list. The 68k:setDtFmt() command does not work on this command, but it will change the format that the calculator returns the 68k:getDtStr() command as.

For example, if the calculator's date was set to March 14th, 2011, the getDate() command would return the following:

:getDate()
:     {2011 3 14}

Authors: KG