我知道这个,但是很遗憾它并没有起作用。
我希望通过小时来确定最小日期。 如果在晚上8点之前,我希望顾客选择今天。 如果超过了晚上8点,他们必须选择明天。
有什么想法吗?
$("#plannedShippingInputBox").datepicker({
dateFormat: "yy-mm-dd", constrainInput: true,
minDate: @Int32.Parse(DateTime.Now.ToString("HH")) < 20) ? 0 : 1
,
beforeShowDay: $.datepicker.noWeekends});
这部分内容是关于以下内容:
minDate: @Int32.Parse(DateTime.Now.ToString("HH")) < 20) ? 0 : 1
我希望通过小时来确定最小日期。 如果在晚上8点之前,我希望顾客选择今天。 如果超过了晚上8点,他们必须选择明天。
有什么想法吗?
minDate: @Int32.Parse(DateTime.Now.ToString("HH")) < 20 ? 0 : 1
try this. You have extra closing)
- asdf_enel_hakminDate: @(Int32.Parse(...
- stephen.vakil