InputDateTime
InputDateTime
Overview
This sample shows the basic usage of the InputDateTime control.
Features
Sample
Description
This sample shows the basic usage of the InputDateTime control.
Source
IndexController.cs
1 2 3 4 5 6 7 8 9 10 11 12 | using Microsoft.AspNetCore.Mvc; namespace MvcExplorer.Controllers { public partial class InputDateTimeController : Controller { public ActionResult Index() { return View(); } } } |
Index.cshtml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | @ { var today = DateTime.Now.Date; } < div > < label > @Html .Raw(InputDateTimeRes.Index_Text0)</ label > < c1-input-date-time value = "@today" > </ c1-input-date-time > </ div > @section Description{ @Html .Raw(InputDateTimeRes.Index_Text1) } |
Documentation