From http://exploringjs.com/es6/ch_destructuring.html
const [all, year, month, day] = /^(\d\d\d\d)-(\d\d)-(\d\d)$/ .exec('2999-12-31');