DateFormatHelper Class
Assembly: PTS.Globalization.dll
public static class DateFormatHelper
Inheritance
System.Object
DateFormatHelper
Fields
Declaration
public static readonly string DefaultDateSeparator
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
public static DateFormatDefinition DateFormatDefinition(CountryCode country)
Parameters
Returns
Declaration
public static string FormatDate(this DateFormat format, DateTime date, string separator = null)
Parameters
Type |
Name |
Description |
DateFormat |
format |
|
System.DateTime |
date |
|
System.String |
separator |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static DateFormat ToDateFormat(CountryCode country)
Parameters
Returns
Declaration
public static DateFormat ToDateFormat(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Declaration
public static DateFormat ToDateFormat(DateTimeFormatInfo info)
Parameters
Type |
Name |
Description |
System.Globalization.DateTimeFormatInfo |
info |
|
Returns
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()