Move default date formats to a method.