Skip to main content
DateTimeFormatter.ShortTime | shortTime property

Applies to Windows and Windows Phone

Gets the DateTimeFormatter object that formats times according to the user's choice of short time pattern.

Syntax


var shortTime = Windows.Globalization.DateTimeFormatting.DateTimeFormatter.shortTime;

public static DateTimeFormatter ShortTime { get; }

Public Shared ReadOnly Property ShortTime As DateTimeFormatter

public:
static property DateTimeFormatter^ ShortTime { 
   DateTimeFormatter^ get();
}

Property value

Type: DateTimeFormatter

A DateTimeFormatter object equivalent to one constructed with the "shorttime" template.

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