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