C# Class Our.Umbraco.OpeningHours.Extensions.DateTimeExtensions

Various extension methods for DateTime used throughout the package.
Mostrar archivo Open project: bomortensen/Our.Umbraco.OpeningHours

Public Methods

Method Description
IsSameDay ( this first, System.DateTime second ) : bool

Gets whether first and second represents the same day.

IsToday ( this date ) : bool

Gets whether the specified date is today.

IsTomorrow ( this date ) : bool

Gets whether the specified date is tomorrow.

Method Details

IsSameDay() public static method

Gets whether first and second represents the same day.
public static IsSameDay ( this first, System.DateTime second ) : bool
first this The first date.
second System.DateTime The second date.
return bool

IsToday() public static method

Gets whether the specified date is today.
public static IsToday ( this date ) : bool
date this The date date.
return bool

IsTomorrow() public static method

Gets whether the specified date is tomorrow.
public static IsTomorrow ( this date ) : bool
date this The date date.
return bool