DateTimeFormatter.Format | format methods

Applies to Windows and Windows Phone

Returns a string representation of a provided date and time.

Overload list

MethodDescription
Format(DateTime) Returns a string representation of the provided date and time.
Format(DateTime, String) Returns a string that represents the given date and time in the given time zone, conforming to the template the formatter is currently using.

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:
© 2014 Microsoft