InputDateTime
概要
機能
サンプル
説明
このサンプルは、InputDateTime コントロールの基本的な使用方法を示します。
ソース
IndexController.cs
using System.Web.Mvc; namespace MvcExplorer.Controllers { public partial class InputDateTimeController : Controller { public ActionResult Index() { return View(); } } }
Index.cshtml
@{ 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) }
マニュアル