▲ Format a JavaScript Date to YYYY MM DD - Mastering JS at masteringjs.io▼1 up and 0 down, posted by vkarpov15 1079 days ago 2 comments
tracker1 1076 days ago. link 1 point ▲ ▼Slightly simpler path... new Date().toJSON().substr(0,10).split('-').join(''); If you want it locallzed, add the offset before the toJSON, but I nearly always work in UTC.