Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.27 KB

datetimeformatter_format_424907088.md

File metadata and controls

39 lines (23 loc) · 1.27 KB
-api-id -api-type
M:Windows.Globalization.DateTimeFormatting.DateTimeFormatter.Format(Windows.Foundation.DateTime,System.String)
winrt method

Windows.Globalization.DateTimeFormatting.DateTimeFormatter.Format

-description

Returns a string that represents the given date and time in the given time zone, conforming to the template the formatter is currently using.

-parameters

-param datetime

The date, time, and timezone to be formatted.

-param timeZoneId

An identifier from the IANA Time Zone Database that identifies the time zone to use (for example, "Americas/Los_Angeles" for Pacific Time).

-returns

A string that represents the date, time, and time zone.

-remarks

Note

If your application supports the Japanese calendar, you should validate that it properly handles the May 2019 Japanese era change. See Prepare your application for the Japanese era change for more information.

-examples

-see-also

Date and time formatting sample (Windows 10)