Echo JS 0.11.0

<~>
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.

Replies