A Cheatsheet of Date Strings in JavaScript

const date = new Date(); date.getDate() // 31 date.getDay() // 4 date.getFullYear() // 2017 date.getHours() // 15 date.getMilliseconds() // 321 date.getMinutes() // 1 date.getMonth() // 7 date. »