12-23-2022, 05:03 AM
new Date() will give the complete current date with time..
var today = new Date();
var today1=today.getFullYear()+'-'+(today.getMonth() + 1)+'-'+today.getDate();
var today = new Date();
var today1=today.getFullYear()+'-'+(today.getMonth() + 1)+'-'+today.getDate();