Click or drag to resize

DayDaysAfter Method

Returns the number of days that this Day is after the specified comparison Day, which will be negative if this Day comes first chronologically.

Namespace:  DegreeDays.Time
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
public int DaysAfter(
	Day comparisonDay


Type: DegreeDays.TimeDay

Return Value

Type: Int32

For example:

  • new Day(2020, 5, 15).DaysAfter(new Day(2020, 5, 14)) will return 1.
  • new Day(2020, 7, 18).DaysAfter(new Day(2020, 7, 20)) will return -2.
  • new Day(1999, 12, 31).DaysAfter(new Day(1999, 12, 31)) will return 0.
See Also