Interface ITimeFormat
Defines time formats used for formatting and parsing DateTime values.
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public interface ITimeFormat
Methods
| Improve this Doc View SourceGetTimeDisplayFormat(CultureInfo)
Gets the format to use to display a DateTime as a time value.
Declaration
string GetTimeDisplayFormat(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | The culture. |
Returns
Type | Description |
---|---|
System.String | A format to use during display of a DateTime. |
GetTimeParseFormats(CultureInfo)
Gets the formats to use to parse a string to a DateTime.
Declaration
string[] GetTimeParseFormats(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | Culture used to determine formats. |
Returns
Type | Description |
---|---|
System.String[] | An array of formats to be used during parsing. |