toDateFormat method

String? toDateFormat([
  1. String format = "dd MMM yyyy"
])

Returns the string formatted as a date using format.

Implementation

String? toDateFormat([String format = "dd MMM yyyy"]) {
  return toDate()?.format(pattern: format);
}