pDateToString static method
Implementation
static String pDateToString(DateTime? dateTime,
{String? defaultValue, String? localization}) {
try {
if (dateTime == null) {
return defaultValue ?? '';
}
String formatted =
pDateFormatter(localization: localization).format(dateTime);
return formatted;
} catch (e) {
return '00-00-0000';
}
}