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