2014 02 04 Date.Date vs Year
Date.getDate()
returns the day of the Month, whereas Date.getMonth()
returns the previous month (somehow zero-indexed).
var date = new Date('Tue Apr 01 2014')
date // Tue Apr 01 2014 00:00:00 GMT+0200
date.getDate() // 1
date.getMonth() // 3
— @depoulo