InputDateTime
Overview
This sample shows the basic usage of the InputDateTime control.
1 2 3 4 5 6 7 8 9 10 11 12 | using System.Web.Mvc; namespace MvcExplorer.Controllers { public partial class InputDateTimeController : Controller { public ActionResult Index() { return View(); } } } |
1 2 3 4 5 6 7 8 9 10 11 12 | @ { var today = DateTime.Now.Date; } < div > < label > @Html .Raw(Resources.InputDateTime.Index_Text0)</ label > @Html .C1().InputDateTime().Value(today) </ div > @section Description{ @Html .Raw(Resources.InputDateTime.Index_Text1) } |