Xojo.Core.DateInterval.Days

From Xojo Documentation

Property (As Integer )
aXojo.Core.DateInterval.Days = newIntegerValue
or
IntegerValue = aXojo.Core.DateInterval.Days

Supported for all project types and targets.

The number of days in the interval.

Sample Code

Var d1 As New Xojo.CoreDate(2017, 5, 1, Xojo.CoreTimeZone.Current)
Var d2 As New Xojo.CoreDate(2017, 5, 20, Xojo.CoreTimeZone.Current)
Var interval As Xojo.CoreDateInterval
interval = d2 - d1
// interval.Days = 19