Fix issue #73 Setting an invalid day for the month results in incorrect date

Set the year and month before the day of month. By the time the day is being set the correct month will be set and the date will stay set correctly.