Re #1150 Centralize the date formating.