Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
hiddentrue

Functions which handle dates.

Date/

...

time functions operate on dates and date&time values.


List of date/time functions

Page Tree
root@self
excerpttrue

Parameters: Date Field and Date Time

Many date/ time functions use arguments Date Field and Date Value - as described below:

Anchor
dateField
dateField
Date Field

Date Field can take one of the following values:

  • _YEAR
  • _MONTH
  • _DAY (equivalent to _DAY_OF_MONTH)
  • _DAY_OF_WEEK
  • _DAY_OF_MONTH
  • _DAY_OF_YEAR
  • _WEEK_OF_YEAR
  • _HOUR
  • _MINUTE
  • _SECOND
  • _MILLISECOND

Anchor
dateValue
dateValue
Date Value

Date Value can be a Number.

For example the following will add three months to the current date and time:

...

dateSet(in.date, _DAY_OF_WEEK, _SUNDAY)

Day Values

The following numbers correspond to the following numbers in the date functions.

  1. Monday
  2. Tuesday
  3. Wednesday
  4. Thursday
  5. Friday
  6. Saturday
  7. Sunday

For example, dateGet("01/07/2017", _DAY_OF_WEEK) will return 6, because it is a Saturday.

Info

Please note that different numbers represent the days of the week in task schedules.


See Also