Class DateTimeFormatInfoUtilities
Exends class System.Globalization.DateTimeFormatInfo.
Inheritance
System.Object
DateTimeFormatInfoUtilities
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: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public static class DateTimeFormatInfoUtilities
Methods
FixYearPart(String)
Sets four digits year part to format.
Declaration
public static string FixYearPart(this string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | Date format string. |
Returns
Type | Description |
---|---|
System.String | Date format string with fixed year part. |
GetShortDayMonthPattern(DateTimeFormatInfo)
Returns short day month pattern.
Declaration
public static string GetShortDayMonthPattern(this DateTimeFormatInfo source)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.DateTimeFormatInfo | source | instance System.Globalization.DateTimeFormatInfo. |
Returns
Type | Description |
---|---|
System.String | String short day/month pattern. |
GetShortYearMonthPattern(DateTimeFormatInfo)
Returns short month year pattern.
Declaration
public static string GetShortYearMonthPattern(this DateTimeFormatInfo source)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.DateTimeFormatInfo | source | instance System.Globalization.DateTimeFormatInfo. |
Returns
Type | Description |
---|---|
System.String | String short month/year pattern. |