-api-id | -api-type |
---|---|
M:Windows.Globalization.DateTimeFormatting.DateTimeFormatter.Format(Windows.Foundation.DateTime,System.String) |
winrt method |
Returns a string that represents the given date and time in the given time zone, conforming to the template the formatter is currently using.
The date, time, and timezone to be formatted.
An identifier from the IANA Time Zone Database that identifies the time zone to use (for example, "Americas/Los_Angeles" for Pacific Time).
A string that represents the date, time, and time zone.
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.