BaseCompareValidator.GetDateElementOrder 方法

定義

決定當前文化日期值中月份、日子和年份出現的順序。

protected:
 static System::String ^ GetDateElementOrder();
protected static string GetDateElementOrder();
static member GetDateElementOrder : unit -> string
Protected Shared Function GetDateElementOrder () As String

傳回

一個字串,代表月份、日、年在當前文化日期值中出現的順序。

備註

日期值的月份、日和年會根據當前文化設定以不同順序出現。 此 GetDateElementOrder 方法用來決定這些數值出現的順序。 下表顯示此方法所回傳的不同值。

日期元素順序 返回值
日、月、年 「DMY」
月份、日子、年份 「MDY」
年份、月份、日期 「ymd」

適用於

另請參閱