大したことはないのですが・・・JSのDateのgetMonth()とかで、ちょっと混乱したのでメモ。
var date = new Date('2015/1/1');
console.log(date.getMonth()); // 1を期待していたら0
console.log(date.getDay()); // 1を期待していたら4
JSの月は、0〜11で処理されているので、
console.log(date.getMonth() + 1); //これで1
とする必要があります。
で、日付は、getDay()ではなく、getDate()でした・・・(getDay()は曜日)。
console.log(date.getDate()); //これで1