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 的字符串。

适用于