jquery moment js datepicker code example
Example 1: moment datepicker
$('#dp5').datepicker() .on('changeDate', function(ev){ if (ev.date.valueOf() < startDate.valueOf()){ //.... }});
Example 2: moment datepicker
<div class="input-append date" id="dp3" data-date="12-02-2012" data-datepicker-format="dd-mm-yyyy"> <input class="span2" size="16" type="text" value="12-02-2012"> <span class="add-on"><i class="icon-th"></i></span></div>