kedno UI でのこの日付形式の検証に問題があります:dd.MM.yyyy
私の文化 (CS-CZ) の剣道では、このパターンを使用します:d. M. yyyy
が、主に使用されるのは format ですdd.MM.yyyy
。
私はすべてを試しましたが、まだ成功していません:/
私のモデル:
public DateTime? ExpirationDate { get; set; }
私の剣道フォーム:
<div class="form-group">
@Html.LabelFor(model => model.ExpirationDate, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
<div class="checkbox">
@(Html.Kendo().DatePickerFor(model => model.ExpirationDate)
.Name("ExpirationDate")
.Culture("cs-CZ")
.HtmlAttributes(new { style = "width:150px" })
)
@Html.ValidationMessageFor(model => model.ExpirationDate, "", new { @class = "text-danger" })
</div>
</div>
ありがとう!