Versions Compared

Key

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

...

Add/Subtract date parts

Funktion

Namespace Global

Namespace v9 DateMath

Beschreibung

Parameter

AddMinutes(expression: DateTime, value: int): DateTime

Adds the given value as minutes to the given dateTime

  • expression: An expression or constant that resolves to a DateTime

  • value: The constant value to add. Can be negative as well.

AddHours(expression: DateTime, value: int): DateTime

Adds the given value as hours to the given dateTime

  • expression: An expression or constant that resolves to a DateTime

  • value: The constant value to add. Can be negative as well.

AddDays(expression: DateTime, value: int): DateTime

Adds the given value as days to the given dateTime

  • expression: An expression or constant that resolves to a DateTime

  • value: The constant value to add. Can be negative as well.

AddMonths(expression: DateTime, value: int): DateTime

Adds the given value as months to the given dateTime

  • expression: An expression or constant that resolves to a DateTime

  • value: The constant value to add. Can be negative as well.

AddYears(expression: DateTime, value: int): DateTime

Adds the given value as years to the given dateTime

  • expression: An expression or constant that resolves to a DateTime

  • value: The constant value to add. Can be negative as well.

...