CalcIt Commands

TODAY

Returns the system date as a multi-field value as described below:

  • Y Year
  • M Month
  • D Day
  • WD Day of Week (see WeekDay function)
  • DT The numeric representation of the day (to do date arithmetic)
  • DS Display format like dd/mm/yyyy

For example

PrintArr(Today)

will print

*Y:2005
 M:9
 D:5
 WD:2
 DT:38600
 DS:05/09/2005

To get one of the above fields use the usual (for the field values) dot syntax:

print( Today.y )

to print the Year part.

See also about multi-field values.

Go Back