var today = new Date();
var day = today.getDate();
var month = today.getMonth()+1; //first month starts from 0
var year = today.getFullYear();
today = day+'/'+month+'/'+year;
the above code will print the date in dd/mm/yyyy format. If you want to print the date in different format like mm/dd/yyyy format or mm-dd-yyyy or in any different combination, then we can easily modify above code.