javascript - How to restrict user from selecting dates after 2months/60days from the date picker -
hi trying restrict date entry present day next 60 days. restricting previous dates used mindate: 0
, worked fine. when used maxdate: 60
dates in stopped appearing.
the code used:
$('#dob').datetimepicker({ format:'y-m-d', formatdate:'y-m-d', mindate: 0, maxdate: 60 });
this shows while entering date:
can please how rectify it?
http://xdsoft.net/jqplugins/datetimepicker/
$('#dob').datetimepicker({ format:'y-m-d', formatdate:'y-m-d', mindate: 0, // mindate:'-1970/01/02',//yesterday minimum date(for today use 0 or -1970/01/01) // maxdate:'+1970/01/02'//tomorrow maximum date calendar maxdate: '+1970/03/03' // 2 months later, feb bit special. });
Comments
Post a Comment