共用方式為


HtmlHelper.Html5DateRenderingMode 屬性

定義

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

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

屬性值

實作

適用於