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
I know I am Late But This Is All You Need
var date = (new Date()).toISOString().split('T')[0];
toISOString() use built function of javascript.
cd = (new Date()).toISOString().split('T')[0]; console.log(cd); alert(cd);