Change the internal date format when the date is sent to the display.
Refactor some code.