共用方式為


HtmlHelperOptions.Html5DateRenderingMode 屬性

定義

取得或設定 Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode.#ctor 值。

public:
 property Microsoft::AspNetCore::Mvc::Rendering::Html5DateRenderingMode Html5DateRenderingMode { Microsoft::AspNetCore::Mvc::Rendering::Html5DateRenderingMode get(); void set(Microsoft::AspNetCore::Mvc::Rendering::Html5DateRenderingMode value); };
public Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get; set; }
member this.Html5DateRenderingMode : Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode with get, set
Public Property Html5DateRenderingMode As Html5DateRenderingMode

屬性值

備註

將這個屬性設定為 CurrentCulture ,讓樣板化協助程式,例如 Editor(String, String, String, Object) ,以及 EditorFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object) 使用目前文化特性轉譯日期和時間值。 根據預設,這些協助程式會將日期和時間轉譯為 RFC 3339 相容字串。

適用於