Fix alignment for single digit day-of-month and month-of-year dates.
Refactoring, namespace for utility functions