我的jquery伊斯兰日历是
$('#txtHijriDate').calendarsPicker({
calendar: $.calendars.instance('islamic'),
monthsToShow: [1, 1],
showOtherMonths: true,
onSelect: function (date) {
}
});
@Html.TextBoxFor(model => model.datepicker, new { id = "txtHijriDate", @class = "form-control", @type = "text" })
此链接帮助我使用此库,
http://keith-wood.name/calendarsPickerRef.html
我正在选择日期并将其保存在回历中,但是当我进行编辑时,我将日期传递给calander以选择错误的日期。
$('#txtHijriDate').calendarsPicker('setDate', '@Model.DecisionDate');
DecisionDate的日期为“ {06/10/41 12:00:00ص}”,但显示在日历“ 1441/12/12”中
在这方面任何人都可以帮助我。