Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Function: dateGet()

Return an element of the date, for example the year, month or day.

See  Date-Time Functions for all 

Syntax

dateGet(date, dateField)

ArgumentTypeDescription
dateDateThe original date/time
dateFieldDate FieldThe part of the date to be be returned (e.g. the month or seconds)

Examples

ExampleReturns
dateGet("20190925",_DAY_OF_WEEK)the day of the week as a number (where Monday is 1).
This date is a Wednesday, so it returns 3.
dateGet(now(),_YEAR)the current year in the format yyyy.
dateGet("20100403.162359",_MONTH)the month as a number, 4.
  • No labels