Xojo.Core.DateInterval.Constructor(years As Integer = 0, months As Integer = 0, days As Integer = 0, hours As Integer = 0, minutes As Integer = 0, seconds As Integer = 0, nanoseconds As Integer = 0)

From Xojo Documentation

Constructor
Xojo.Core.DateInterval.Constructor(years As Integer = 0, months As Integer = 0, days As Integer = 0, hours As Integer = 0, minutes As Integer = 0, seconds As Integer = 0, nanoseconds As Integer = 0)

Specifies an interval using the various properties to create a date and time.

Sample Code

Creates a date that is two months from today and two months before today:

Dim di As New Xojo.Core.DateInterval(0, 2) // 0 years, 2 months
// Get date two months from today
Dim d1 As Xojo.Core.Date = Xojo.Core.Date.Now + di
// Get date two months before today
Dim d2 As Date = Xojo.Core.Date.Now - di