Get the first day of the month with the given index, inverting monthIndexOf. Counting from January of year 0 also inverts negative indexes, since createDate normalizes a month outside 0-11 into the year.
monthIndexOf
createDate