Correct date formating.

Incorrect test for month, day, hours, minutes, seconds when equals 9 (<
9 instead of < 10).