formatAsM method

String formatAsM([
  1. String? locale
])

Formats the DateTime object using the M format and optional locale.

Implementation

String formatAsM([String? locale]) => DateFormat.M(locale).format(this);