JavaScript counts months from 0 to 11.
Specifying a day higher than max, will not result in an error but add the overflow to the next month: