InputDateTime

InputDateTime

Overview

Features

Description

This sample shows the basic usage of the InputDateTime control.
using System.Web.Mvc;

namespace MvcExplorer.Controllers
{
    public partial class InputDateTimeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }
    }
}
@{
    var today = DateTime.Now.Date;
}

<div>
    <label>Select a date and a time</label>
    @Html.C1().InputDateTime().Value(today)
</div>

@section Description{
    This sample shows the basic usage of the InputDateTime control.
}