I want to know how to use the Date() function in jQuery to get the current date in a yyyy/mm/dd format.
yyyy/mm/dd
function createDate() { var date = new Date(), yr = date.getFullYear(), month = date.getMonth()+1, day = date.getDate(), todayDate = yr + '-' + month + '-' + day; console.log("Today date is :" + todayDate);