Returns the string formatted as a date using format.
format
String? toDateFormat([String format = "dd MMM yyyy"]) { return toDate()?.format(pattern: format); }