Date.daysBetween

Computes the number of days between two dates. If @date2 is prior to @date1, the returned value is negative. Both dates must be valid.

class Date
int
daysBetween

Parameters

date2 Date

the second date

Return Value

Type: int

the number of days between @date1 and @date2

Meta