Skip to main content
Version: 26.1

dateItems

Function, Date Format, Property Key

  • Function
  • Date format for the convert command
  • Property key in the timeFormat

There are four dateItems functions corresponding to the dateItems formats available in the convert command: dateItems, long dateItems, abbreviated dateItems, and short dateItems. These formats present a date and time as a comma-separated text list. The short dateitems returns 6 items: the year, month, day, hour, minute, and second. The dateitems (without an adjective) returns 7 items, with the seventh being the day of the week (0-6, where Sunday is 0). The abbreviated dateitems adds the timezone offset in HHMM format, and the long dateitems returns that same information, but with the timezone name rather than offset.

Example:

When used as a property key for the timeFormat global property, that controls the format used for the dateitems function:

put the timeFormat.dateItems --> [year],[mo],[da],[hr24],[mi],[se],[dayOfWeek]
put the dateItems --> 2021,05,14,06,43,49,6

Related terms in the SenseTalk Dictionary.