November Happy Hour will be moved to Thursday December 5th.

Class DateTimeExtensions

Inheritance
System.Object
DateTimeExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
public static class DateTimeExtensions

Methods

ToFriendlyDateString(DateTime)

Declaration
public static string ToFriendlyDateString(this DateTime date)
Parameters
Type Name Description
System.DateTime date
Returns
Type Description
System.String

ToFriendlyDateString(DateTime, LocalizationService)

Declaration
public static string ToFriendlyDateString(this DateTime date, LocalizationService localizationService)
Parameters
Type Name Description
System.DateTime date
LocalizationService localizationService
Returns
Type Description
System.String

ToFriendlyDateString(Nullable<DateTime>)

Declaration
public static string ToFriendlyDateString(this DateTime? date)
Parameters
Type Name Description
System.Nullable<System.DateTime> date
Returns
Type Description
System.String

ToFriendlyDateTimeString(DateTime)

Declaration
public static string ToFriendlyDateTimeString(this DateTime date)
Parameters
Type Name Description
System.DateTime date
Returns
Type Description
System.String

ToFriendlyDateTimeString(DateTime, LocalizationService)

Declaration
public static string ToFriendlyDateTimeString(this DateTime date, LocalizationService localizationService)
Parameters
Type Name Description
System.DateTime date
LocalizationService localizationService
Returns
Type Description
System.String

ToFriendlyDateTimeString(Nullable<DateTime>)

Declaration
public static string ToFriendlyDateTimeString(this DateTime? date)
Parameters
Type Name Description
System.Nullable<System.DateTime> date
Returns
Type Description
System.String