mvcビューでdatetime pickerを使用するにはどうすればよいですか?datetime pickerをeditortemplateとして使用する方法
EditorTemplate:ここDatetime.cshtml
@model DateTime?
@Html.TextBox("", Model.HasValue ? Model.Value.ToString("dd/MM/yyyy"):"", new { @class = "datefield" })
Model :
[Required]
public DateTime DateOfBirth { get; set; }.
Also jquery.ui.all.css is under my solution content>themes>base
は、日付ピッカーが必要な部分図です。 Html.LabelFor @
@model PersonalDetails`
` (モデル=> model.DateOfBirth) Html.EditorFor(モデル=> model.DateOfBirth、新しい{@プレースホルダ= "生年月日" @、@class = Html.ValidationMessageFor @ "日付フィールド"、@タイプ= "テキスト"})
(モデル=> model.DateOfBirth)
Here the date field is coming in the format specified in the Datetime editor template. But the calendor image is not coming.
[jQuery UI datepicker](https://jqueryui.com/datepicker/)を使用すると何が問題になります – Shyju
サンプルコードを試しましたか?あなたは直面している問題は何ですか? – Shyju
ブートストラップには日付ピッカーがありません。ブートストラップの日付ピッカーを書いた人がいます。 [私はあなたのためにgoogleしましょう](https://www.google.com/#pws=0&q=bootstrap+datepicker+) – Shyju