Click or drag to resize

DayDaysBefore Method

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.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public int DaysBefore(
	Day comparisonDay
)

Parameters

comparisonDay  Day
 

Return Value

Int32
Remarks

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