The DATE command stores the current date and time in a string variable. The string variable may be previously defined or it may be a new string name. The resultStringVariable can be printed out with the PRINT command or combined with other strings in the STRING command. The DATE is put into the result string in the following format: ddd MMM dd hh:mm:ss TMZ YYYY where: ddd = day of week MMM = Month dd = day of month hh = hour of day (24hr time) mm = minutes ss = seconds TMZ = time zone YYYY = year For example: Tue Dec 15 16:48:45 MST 2015
|
The following example program snippet computes the date, combines it with another string and prints the result to the output window: DATE today STRING "The date and time is: " today dateString PRINT dateString The output is the following: The date and time is: Tue Dec 15 16:59:20 MST 2015
|