how to get dtae in javascript code example
Example 1: how to use current data in javascript
var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
Example 2: javascript get current day of month
new Date().getDate();//gets day of month (1-31)