From Xojo Documentation

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

Property (As Integer )
aXojo.Core.DateInterval.Days = newIntegerValue
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