current date - date in javascript code example
Example 1: calculate today date javascript
var today = new Date();
Example 2: current date jquery and current day
$( "#datepicker" ).datepicker({dateFormat:"yy/mm/dd"}).datepicker("setDate",new Date());