how do we get only day month and year of a currebt date in js code example
Example 1: calculate today date javascript
var today = new Date();
Example 2: how to get date time day year in javscript
var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();