found currect date in javascript

91

found currect date in javascript -

var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();

Comments

Submit
0 Comments