Class DateTimeDayExtensions
Inheritance
DateTimeDayExtensions
Assembly: PayrollEngine.Core.dll
Syntax
public static class DateTimeDayExtensions
Methods
EnsureLastMomentOfDay(DateTime)
Declaration
public static DateTime EnsureLastMomentOfDay(this DateTime moment)
Parameters
Returns
FirstMomentOfDay(DateTime)
Declaration
public static DateTime FirstMomentOfDay(this DateTime moment)
Parameters
Returns
GetNextWeekDay(DateTime, DayOfWeek)
Declaration
public static DateTime GetNextWeekDay(this DateTime moment, DayOfWeek dayOfWeek)
Parameters
Returns
GetPastDaysCount(DateTime)
Declaration
public static int GetPastDaysCount(this DateTime moment)
Parameters
Returns
GetPreviousWeekDay(DateTime, DayOfWeek)
Declaration
public static DateTime GetPreviousWeekDay(this DateTime moment, DayOfWeek dayOfWeek)
Parameters
Returns
IsDayOfWeek(DateTime, IEnumerable<DayOfWeek>)
Declaration
public static bool IsDayOfWeek(this DateTime moment, IEnumerable<DayOfWeek> days)
Parameters
Returns
IsFirstDayOfCalendarYear(DateTime)
Declaration
public static bool IsFirstDayOfCalendarYear(this DateTime moment)
Parameters
Returns
IsFirstDayOfMonth(DateTime)
Declaration
public static bool IsFirstDayOfMonth(this DateTime moment)
Parameters
Returns
IsFirstMomentOfDay(DateTime)
Declaration
public static bool IsFirstMomentOfDay(this DateTime moment)
Parameters
Returns
IsLastDayOfCalendarYear(DateTime)
Declaration
public static bool IsLastDayOfCalendarYear(this DateTime moment)
Parameters
Returns
IsLastDayOfMonth(DateTime)
Declaration
public static bool IsLastDayOfMonth(this DateTime moment)
Parameters
Returns
IsLastMomentOfDay(DateTime)
Declaration
public static bool IsLastMomentOfDay(this DateTime moment)
Parameters
Returns
LastMomentOfDay(DateTime)
Declaration
public static DateTime LastMomentOfDay(this DateTime moment)
Parameters
Returns