Html5DateRenderingMode Enum

Controls the value-rendering method For HTML5 input elements of types such as date, time, datetime and datetime-local.

Namespace
Microsoft.AspNetCore.Mvc.Rendering
Assemblies
  • Microsoft.AspNetCore.Mvc.ViewFeatures

Syntax

public enum Html5DateRenderingMode
enum Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode

Fields

CurrentCulture()

Render date and time values according to the current culture’s ToString behavior.

Return type:Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode
CurrentCulture = 1
Rfc3339()

Render date and time values as Rfc3339 compliant strings to support HTML5 date and time types of input elements.

Return type:Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode
Rfc3339 = 0