...
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 | ||
---|---|---|
| ||
var hours = $Calendar.Subtract(DateTimeOffset.parse('2017-01-25T15:00'), DateTimeOffset.parse('2017-01-25T13:00'));
// hours will be set to 2 |