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:

enter image description here

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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -