Share via


DateTimeFormatter.ShortTime Property

Definition

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

public:
 static property DateTimeFormatter ^ ShortTime { DateTimeFormatter ^ get(); };
static DateTimeFormatter ShortTime();
public static DateTimeFormatter ShortTime { get; }
var dateTimeFormatter = DateTimeFormatter.shortTime;
Public Shared ReadOnly Property ShortTime As DateTimeFormatter

Property Value

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

Applies to