DateTimeCollectionHelper Class
Namespace: PTS
Assembly: PTS.Modules.DateTimeRangeComponent.dll
Static helper methods for DateTime
collection type.
Syntax
public static class DateTimeCollectionHelper
Inheritance
System.Object
DateTimeCollectionHelper
Methods
ToContiguousDays(ICollection<DateTime>)
Generates continuous date ranges for specified dates.
Declaration
public static List<DateTimeRange> ToContiguousDays(this ICollection<DateTime> dates)
Parameters
Type | Name | Description |
---|---|---|
System. |
dates | Dates to generate the continuous date ranges for. |
Returns
Type | Description |
---|---|
System. |
Collection of continuous date ranges. |