how to change current date format in javascript?
function getSecondsToday ( ) { let now = new Date ( ) ; // create an object using the current day/month/year let today = new Date ( now . getFullYear ( ) , now . getMonth ( ) , now . getDate ( ) ) ; let diff = now - today ; // ms difference return Math .