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
var d = new Date(); var today = d.getFullYear() + '/' + ('0'+(d.getMonth()+1)).slice(-2) + '/' + ('0'+d.getDate()).slice(-2);