Show / Hide Table of Contents

Interface ITimeFormat

Defines time formats used for formatting and parsing DateTime values.

Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
public interface ITimeFormat

Methods

| Improve this Doc View Source

GetTimeDisplayFormat(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source