Returns the number of days that this Day is before the specified
comparison Day, which will be negative if
comparisonDay comes first chronologically.
Namespace: DegreeDays.TimeAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public int DaysBefore(
Day comparisonDay
)
Public Function DaysBefore (
comparisonDay As Day
) As Integer
Parameters
- comparisonDay Day
-
Return Value
Int32Remarks
For example:
- new Day(2020, 7, 18).DaysBefore(new Day(2020, 7, 20))
will return 2.
- new Day(2020, 5, 15).DaysBefore(new Day(2020, 5, 14))
will return -1.
- new Day(1999, 12, 31).DaysBefore(new Day(1999, 12, 31))
will return 0.
See Also