From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aDateInterval.Months = newIntegerValue
IntegerValue = aDateInterval.Months

Supported for all project types and targets.

The number of months in the interval.

Sample Code

Get a date two months from today:

Var di As New DateInterval
di.Months = 2 // 2 months

// Get date two months from today
Var d2 As Date = Date.Now + di