formatCustom method

String formatCustom(
  1. String pattern, [
  2. String locale = 'en_US'
])

Formats the date using a custom pattern

Implementation

String formatCustom(String pattern, [String locale = 'en_US']) {
  return DateFormatters.formatCustom(this, pattern, locale);
}