Class DateTimeExtensions
DateTime extension helpers.
Inherited Members
Namespace: EduCATS.Helpers.Date.Extensions
Assembly: EduCATS.dll
Syntax
public static class DateTimeExtensions
Methods
StartOfWeek(DateTime, DayOfWeek)
Get start of week.
Declaration
public static DateTime StartOfWeek(this DateTime date, DayOfWeek startOfWeek)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | date | Original date. |
| DayOfWeek | startOfWeek | Start day of week. |
Returns
| Type | Description |
|---|---|
| DateTime |