sergey-t
5/25/2016 - 5:02 AM

es6#date_destructuring

const [all, year, month, day] =
    /^(\d\d\d\d)-(\d\d)-(\d\d)$/
    .exec('2999-12-31');