dateToString static method
Implementation
static String dateToString(DateTime date, {String? pattern, String? locale}) {
pattern ??= 'yyyy.MM.dd';
initializeDateFormatting("en_US", null);
return DateFormat(pattern, locale).format(date);
}
static String dateToString(DateTime date, {String? pattern, String? locale}) {
pattern ??= 'yyyy.MM.dd';
initializeDateFormatting("en_US", null);
return DateFormat(pattern, locale).format(date);
}