Creates and returns a new
DateTime object by subtracting the specified number of days from this
DateTime object. This
DateTime object is unaltered by the operation.
datetime.sub_days(days As Number) as DateTime
days. Number. The number of days to subtract from this
- A new
var xmas = DateTime(2017, 12, 25, 9, 30, 15) # Dec 25th 2017 9:30:15 AM. var d = xmas.sub_days(7) print(d) # Dec 18th 2017 9:30:15 AM.