EssentialsDateTime.GetDateTimeFormats method
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
GetDateTimeFormats()
Converts the value of this instance to all the string representations supported by the standard date and time format specifiers.
public String[] GetDateTimeFormats()
Returns
A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers.
GetDateTimeFormats(IFormatProvider)
Converts the value of this instance to all the string representations supported by the standard date and time format specifiers and the specified culture-specific formatting information.
public String[] GetDateTimeFormats(IFormatProvider provider)
Parameters
provider
IFormatProvider
An object that supplies culture-specific formatting information about this instance.
Returns
A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers.
GetDateTimeFormats(Char)
Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier.
public String[] GetDateTimeFormats(Char format)
Parameters
format
Char
A standard date and time format string.
Returns
A string array where each element is the representation of the value of this instance formatted with the format standard date and time format specifier.
GetDateTimeFormats(Char, IFormatProvider)
Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier and culture-specific formatting information.
public String[] GetDateTimeFormats(Char format, IFormatProvider provider)
Parameters
format
Char
A date and time format string.
provider
IFormatProvider
An object that supplies culture-specific formatting information about this instance.
Returns
A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers.