Consolidate date formatting and parsing into the Format enum.
Add a new parseDate method signature.