Allow templates to set the date format