javascript - How to move current date to the first row of the jQuery datepicker calendar -
is possible shift current day first row of datepicker calendar? first row contains current day.
following code set mindate first date of current month , maxdate last date of current month.
var currenttime = new date(); // first date of month var startdatefrom = new date(currenttime.getfullyear(),currenttime.getmonth(),1); // last date of month var startdateto = new date(currenttime.getfullyear(),currenttime.getmonth() +1,0); $("#datepicker").datepicker({ dateformat: 'dd.mm.yy', mindate: startdatefrom, maxdate: startdateto });
Comments
Post a Comment