You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

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

Compare with Current View Page History

« Previous Version 6 Current »

ADD PERIOD TO DATETIME


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


Syntax

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
01-01-2015 13:23:04 + 1 DAYS02-01-2015 13:23:04DateTime
01-01-2015 13:23:04 + 25 HOURS02-01-2015 14:23:04DateTime
01-01-2015 13:23:04 + 60 SECONDS01-01-2015 13:24:04DateTime
01-01-2015 13:23:04 + 1 MINUTES01-01-2015 13:24:04DateTime


Back to Top



  • No labels