Westwind Utilities
TimeUtils.IsBetween
Table of Contents
On this page:

TimeUtils.IsBetween

Returns whether a timespan is between two dates

public static bool IsBetween(DateTime date, DateTime startDate, 
			DateTime endDate, bool includeTime)

Parameters

date

startDate

endDate

includeTime
If true compare date and time, otherwise just date

Overloads

public static bool IsBetween(TimeSpan date, DateTime startDate, DateTime endDate)

© West Wind Technologies, 2026 • updated: Jan 30, 2026
Comment or report problem with topic