ViewContext.Html5DateRenderingMode Property

Definition

Set this property to CurrentCulture to have templated helpers such as Editor(String, String, String, Object) and EditorFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object) render date and time values using the current culture. By default, these helpers render dates and times as RFC 3339 compliant strings.

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

Property Value

Applies to