Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Windows.Globalization.DateTimeFormatting Namespace

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Enables formatting of dates and times.

Note

If you're using C++ or C, then also consider the International Components for Unicode (ICU).

Classes

Name Description
DateTimeFormatter

Formats dates and times.

Enums

Name Description
DayFormat

Specifies the intended format for the day in a DateTimeFormatter object.

DayOfWeekFormat

Specifies the intended format for the day of the week in a DateTimeFormatter object.

HourFormat

Specifies the intended format for the hour in a DateTimeFormatter object.

MinuteFormat

Specifies the intended format for the minute in a DateTimeFormatter object.

MonthFormat

Specifies the intended format for the month in a DateTimeFormatter object.

SecondFormat

Specifies the intended format for the second in a DateTimeFormatter object.

YearFormat

Specifies the intended format for the year in a DateTimeFormatter object.

Remarks

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

For a list of standard country/region codes used by Microsoft, see the Official Country/Region List.

See also


Feedback

Was this page helpful?