correctly prints dates with single digits