Allow date format used to be customised via configuration