Versions Compared

Key

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

ADD PERIOD TO DATETIME


Calculates a new dateTime by adding a specified period to a specified dateTime.


Syntax

Code Block
dateTime + number period


Inputs
  • dateTime - The dateTime that you want to add the specified period to.
  • number - Specifies how may periods you want to add to the dateTime.
  • period - A keyword that specifies which time unit to add. Valid units are DAYS, WEEKS, MONTHS, YEARS, HOURS, MINUTES and SECONDS.


Return type

  • dateTime


Examples

ExpressionResultType
DATETIME("2015-01-01 -2015 13:23:04") + 1 DAYS022015-01-2015 02 13:23:04DateTime
DATETIME("2015-01-01 -2015 13:23:04") + 25 HOURS022015-01-2015 02 14:23:04DateTime
DATETIME("2015-01-01 -2015 13:23:04") + 60 SECONDS2015-01-01 -2015 13:24:04DateTime
DATETIME("2015-01-01 -2015 13:23:04") + 1 MINUTES2015-01-01 -2015 13:24:04DateTime


Back to top

...