Class DateTimeExtensions
- Namespace
- WhatIsHeDoing.Core.Extensions
- Assembly
- WhatIsHeDoing.Core.dll
Provides extension methods for DateTime.
public static class DateTimeExtensions
- Inheritance
-
DateTimeExtensions
- Inherited Members
Methods
GetNextWeekday(DateTime, DayOfWeek)
Gets the date at the next weekday supplied.
public static DateTime GetNextWeekday(this DateTime dateTime, DayOfWeek day)
Parameters
Returns
- DateTime
Date time
Remarks
PeriodsBetween(DateTime, DateTime, uint)
Generates the periods between two date times.
public static IEnumerable<DateTime> PeriodsBetween(this DateTime start, DateTime end, uint period = 30)
Parameters
Returns
- IEnumerable<DateTime>
Date times