DateTimeFormatter.ShortDate 屬性

定義

會取得 DateTimeFormatter 物件,根據使用者選擇的簡短日期模式來格式化日期。

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

屬性值

DateTimeFormatter物件,相當於使用 「shortdate」 範本所建構的物件。

適用於