DateTimeFormatter DateTimeFormatter DateTimeFormatter DateTimeFormatter DateTimeFormatter Constructors

Definition

Overloads

DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat)

Creates a DateTimeFormatter object that is initialized with hour, minute, and second formats.

DateTimeFormatter(String) DateTimeFormatter(String) DateTimeFormatter(String) DateTimeFormatter(String) DateTimeFormatter(String)

Creates a DateTimeFormatter object that is initialized by a format template string.

DateTimeFormatter(String, IIterable<String>) DateTimeFormatter(String, IIterable<String>) DateTimeFormatter(String, IIterable<String>) DateTimeFormatter(String, IIterable<String>) DateTimeFormatter(String, IIterable<String>)

Creates a DateTimeFormatter object that is initialized by a format template string and language list.

DateTimeFormatter(String, IIterable<String>, String, String, String) DateTimeFormatter(String, IIterable<String>, String, String, String) DateTimeFormatter(String, IIterable<String>, String, String, String) DateTimeFormatter(String, IIterable<String>, String, String, String) DateTimeFormatter(String, IIterable<String>, String, String, String)

Creates a DateTimeFormatter object that is initialized by a format template string, language list, geographic region, calendar, and clock.

DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat)

Creates a DateTimeFormatter object that is initialized with year, month, day, and day of week formats.

DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>)

Creates a DateTimeFormatter object that is initialized with year, month, day, day of week, hour, minute, and second formats, and a language list.

DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String)

Creates a DateTimeFormatter object with all formats and identifiers specified.

DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat)

Creates a DateTimeFormatter object that is initialized with hour, minute, and second formats.

public : DateTimeFormatter(HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat)
DateTimeFormatter(HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat) const;
public DateTimeFormatter(HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat)
Public Sub New(hourFormat As HourFormat, minuteFormat As MinuteFormat, secondFormat As SecondFormat)
var dateTimeFormatter = new dateTimeFormatter(hourFormat, minuteFormat, secondFormat);

Parameters

hourFormat
HourFormat HourFormat HourFormat

The desired hour format to include in the template.

minuteFormat
MinuteFormat MinuteFormat MinuteFormat

The desired minute format to include in the template.

secondFormat
SecondFormat SecondFormat SecondFormat

The desired second format to include in the template.

See also

DateTimeFormatter(String) DateTimeFormatter(String) DateTimeFormatter(String) DateTimeFormatter(String) DateTimeFormatter(String)

Creates a DateTimeFormatter object that is initialized by a format template string.

public : DateTimeFormatter(Platform::String formatTemplate)
DateTimeFormatter(winrt::hstring formatTemplate) const;
public DateTimeFormatter(String formatTemplate)
Public Sub New(formatTemplate As String)
var dateTimeFormatter = new dateTimeFormatter(formatTemplate);

Parameters

formatTemplate
String String String

A format template string that specifies the requested components. The order of the components is irrelevant. This can also be a format pattern. See the remarks for the DateTimeFormatter class for a list of valid format templates and format patterns.

See also

DateTimeFormatter(String, IIterable<String>) DateTimeFormatter(String, IIterable<String>) DateTimeFormatter(String, IIterable<String>) DateTimeFormatter(String, IIterable<String>) DateTimeFormatter(String, IIterable<String>)

Creates a DateTimeFormatter object that is initialized by a format template string and language list.

public : DateTimeFormatter(Platform::String formatTemplate, IIterable<Platform::String> languages)
DateTimeFormatter(winrt::hstring formatTemplate, IIterable<winrt::hstring> languages) const;
public DateTimeFormatter(String formatTemplate, IEnumerable<String> languages)
Public Sub New(formatTemplate As String, languages As IEnumerable(Of String))
var dateTimeFormatter = new dateTimeFormatter(formatTemplate, languages);

Parameters

formatTemplate
String String String

A format template string that specifies the requested components. The order of the components is irrelevant. This can also be a format pattern. See the remarks for the DateTimeFormatter class for a list of valid format templates and format patterns.

languages
IEnumerable<String> IEnumerable<String> IEnumerable<String>

The list of language identifiers, in priority order, that represent the choice of languages. These identifiers are used for resolving the template to a pattern and for formatting. See Remarks.

Remarks

If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Starting in : Language tags support the Unicode extensions "ca-" and "nu-". (See Unicode Key/Type Definitions.) Note that the "ca-" extension can affect the calendar used by DateTimeFormatter objects.

See also

DateTimeFormatter(String, IIterable<String>, String, String, String) DateTimeFormatter(String, IIterable<String>, String, String, String) DateTimeFormatter(String, IIterable<String>, String, String, String) DateTimeFormatter(String, IIterable<String>, String, String, String) DateTimeFormatter(String, IIterable<String>, String, String, String)

Creates a DateTimeFormatter object that is initialized by a format template string, language list, geographic region, calendar, and clock.

public : DateTimeFormatter(Platform::String formatTemplate, IIterable<Platform::String> languages, Platform::String geographicRegion, Platform::String calendar, Platform::String clock)
DateTimeFormatter(winrt::hstring formatTemplate, IIterable<winrt::hstring> languages, winrt::hstring geographicRegion, winrt::hstring calendar, winrt::hstring clock) const;
public DateTimeFormatter(String formatTemplate, IEnumerable<String> languages, String geographicRegion, String calendar, String clock)
Public Sub New(formatTemplate As String, languages As IEnumerable(Of String), geographicRegion As String, calendar As String, clock As String)
var dateTimeFormatter = new dateTimeFormatter(formatTemplate, languages, geographicRegion, calendar, clock);

Parameters

formatTemplate
String String String

A format template string that specifies the requested components. The order of the components is irrelevant. This can also be a format pattern. See the remarks for the DateTimeFormatter class for a list of valid format templates and format patterns.

languages
IEnumerable<String> IEnumerable<String> IEnumerable<String>

The list of language identifiers, in priority order, that represent the choice of languages. These identifiers are used for resolving the template to a pattern, and for formatting. See Remarks.

geographicRegion
String String String

The identifier for the geographic region. This identifier is used for resolving the template to a pattern.

calendar
String String String

The calendar identifier to use.

clock
String String String

The clock identifier to use.

Remarks

If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Starting in : Language tags support the Unicode extensions "ca-" and "nu-". (See Unicode Key/Type Definitions.) Note that the "ca-" extension can affect the calendar used by DateTimeFormatter objects.

See also

DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat)

Creates a DateTimeFormatter object that is initialized with year, month, day, and day of week formats.

public : DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat)
DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat) const;
public DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat)
Public Sub New(yearFormat As YearFormat, monthFormat As MonthFormat, dayFormat As DayFormat, dayOfWeekFormat As DayOfWeekFormat)
var dateTimeFormatter = new dateTimeFormatter(yearFormat, monthFormat, dayFormat, dayOfWeekFormat);

Parameters

yearFormat
YearFormat YearFormat YearFormat

The desired year format to include in the template.

monthFormat
MonthFormat MonthFormat MonthFormat

The desired month format to include in the template.

dayFormat
DayFormat DayFormat DayFormat

The desired day format to include in the template.

dayOfWeekFormat
DayOfWeekFormat DayOfWeekFormat DayOfWeekFormat

The desired day of week format to include in the template.

See also

DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>)

Creates a DateTimeFormatter object that is initialized with year, month, day, day of week, hour, minute, and second formats, and a language list.

public : DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat, HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat, IIterable<Platform::String> languages)
DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat, HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat, IIterable<winrt::hstring> languages) const;
public DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat, HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat, IEnumerable<String> languages)
Public Sub New(yearFormat As YearFormat, monthFormat As MonthFormat, dayFormat As DayFormat, dayOfWeekFormat As DayOfWeekFormat, hourFormat As HourFormat, minuteFormat As MinuteFormat, secondFormat As SecondFormat, languages As IEnumerable(Of String))
var dateTimeFormatter = new dateTimeFormatter(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, hourFormat, minuteFormat, secondFormat, languages);

Parameters

yearFormat
YearFormat YearFormat YearFormat

The year format to include in the template.

monthFormat
MonthFormat MonthFormat MonthFormat

The month format to include in the template.

dayFormat
DayFormat DayFormat DayFormat

The day format to include in the template.

dayOfWeekFormat
DayOfWeekFormat DayOfWeekFormat DayOfWeekFormat

The day of week format to include in the template.

hourFormat
HourFormat HourFormat HourFormat

The hour format to include in the template.

minuteFormat
MinuteFormat MinuteFormat MinuteFormat

The minute format to include in the template.

secondFormat
SecondFormat SecondFormat SecondFormat

The second format to include in the template.

languages
IEnumerable<String> IEnumerable<String> IEnumerable<String>

The list of language identifiers, in priority order, that represent the choice of languages. These identifiers are used for resolving the template to a pattern and for formatting. See Remarks.

Remarks

If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Starting in : Language tags support the Unicode extensions "ca-" and "nu-". (See Unicode Key/Type Definitions.) Note that the "ca-" extension can affect the calendar used by DateTimeFormatter objects.

See also

DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String) DateTimeFormatter(YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, IIterable<String>, String, String, String)

Creates a DateTimeFormatter object with all formats and identifiers specified.

public : DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat, HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat, IIterable<Platform::String> languages, Platform::String geographicRegion, Platform::String calendar, Platform::String clock)
DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat, HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat, IIterable<winrt::hstring> languages, winrt::hstring geographicRegion, winrt::hstring calendar, winrt::hstring clock) const;
public DateTimeFormatter(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat, HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat, IEnumerable<String> languages, String geographicRegion, String calendar, String clock)
Public Sub New(yearFormat As YearFormat, monthFormat As MonthFormat, dayFormat As DayFormat, dayOfWeekFormat As DayOfWeekFormat, hourFormat As HourFormat, minuteFormat As MinuteFormat, secondFormat As SecondFormat, languages As IEnumerable(Of String), geographicRegion As String, calendar As String, clock As String)
var dateTimeFormatter = new dateTimeFormatter(yearFormat, monthFormat, dayFormat, dayOfWeekFormat, hourFormat, minuteFormat, secondFormat, languages, geographicRegion, calendar, clock);

Parameters

yearFormat
YearFormat YearFormat YearFormat

The desired year format to include in the template.

monthFormat
MonthFormat MonthFormat MonthFormat

The desired month format to include in the template.

dayFormat
DayFormat DayFormat DayFormat

The desired day format to include in the template.

dayOfWeekFormat
DayOfWeekFormat DayOfWeekFormat DayOfWeekFormat

The desired day of week format to include in the template.

hourFormat
HourFormat HourFormat HourFormat

The desired hour format to include in the template.

minuteFormat
MinuteFormat MinuteFormat MinuteFormat

The desired minute format to include in the template.

secondFormat
SecondFormat SecondFormat SecondFormat

The desired second format to include in the template.

languages
IEnumerable<String> IEnumerable<String> IEnumerable<String>

The list of language identifiers, in priority order, that represent the choice of languages. These identifiers are used for resolving the template to a pattern, and for formatting. See Remarks.

geographicRegion
String String String

The identifier for the geographic region. This identifier is used for resolving the template to a pattern.

calendar
String String String

The calendar identifier to use.

clock
String String String

The clock identifier to use.

Remarks

If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Starting in : Language tags support the Unicode extensions "ca-" and "nu-". (See Unicode Key/Type Definitions.) Note that the "ca-" extension can affect the calendar used by DateTimeFormatter objects.

See also