If the month is January, which is assigned to be 0, javascript will evaluate !date.month to true.
If the month is January, which is assigned to be 0, javascript will evaluate !date.month to true.