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