SyntaxFix
Write A Post
Hire A Developer
Questions
It's ugly, but it works. :/
var today = new Date().toLocaleString('en-GB').split(' ')[0].split('/').reverse().join('-');