SubtractDateTimeWithFields

Subtracts the specified values from the DateTime and returns a new DateTime.

Table 1. Input Properties
Property Type Description
DateTime DateTime
Year Number The year.
MonthOfYear Number The month of the year, from 1 to 12.
DayOfMonth Number The day of the month, from 1 to 31.
HourOfDay Number The hour of the day, from 0 to 23.
MinuteOfHour Number The minute of the hour, from 0 to 59.
SecondOfMinute Number The second of the minute, from 0 to 59.