bug #4231 :  By setting the month before the day of month, when we are a...

...t the end of a month with 31 days and we want pass to the next month, instead we pass to two month after. In order to fix this bug, the day of month is set before setting the other date properties (month and year)