Yes. new Date(year,2,0) and new Date(year,1,29) wiil give the same result in a leap year. Equivalent ways.