Xojo.Core.DateInterval.Months

From Xojo Documentation

Revision as of 17:16, 11 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aXojo.Core.DateInterval.Months = newIntegerValue
or
IntegerValue = aXojo.Core.DateInterval.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 Xojo.Core.DateInterval
di.Months = 2 // 2 months

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