Formats the DateTime object using the yMd format and optional locale.
String formatAsyMd([String? locale]) => DateFormat.yMd(locale).format(this);