DateTimeFormatter constructors

DateTimeFormatter.DateTimeFormatter constructors

Creates a DateTimeFormatter object.

Overload list

ConstructorDescription
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) Creates a DateTimeFormatter object with all formats and identifiers specified.
DateTimeFormatter(String) Creates a DateTimeFormatter object that is initialized by a format template string.
DateTimeFormatter(String, IIterable(String)) Creates a DateTimeFormatter object that is initialized by a format template string and language list.
DateTimeFormatter(HourFormat, MinuteFormat, SecondFormat) Creates a DateTimeFormatter object that is initialized with hour, minute, and second formats.
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) Creates a DateTimeFormatter object that is initialized with year, month, day, and day of week formats.

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization.DateTimeFormatting
Windows::Globalization::DateTimeFormatting [C++]

Metadata

Windows.winmd

See also

DateTimeFormatter

 

 

Show:
© 2016 Microsoft