Versions Compared

Key

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

...

Specifies the date time value that will be subtracted from start parameter.

Returns

Example

Subtract two date time values and returns the number of hours between them.

Code Block
languagejs
var hours = $Calendar.Subtract(DateTimeOffset.parse('2017-01-25T15:00'), DateTimeOffset.parse('2017-01-25T13:00'));
// hours will be set to 2