pStringToDate static method
Implementation
static DateTime pStringToDate(String date) {
try {
DateTime newDateTimeObj2 = DateTime.parse(date);
return newDateTimeObj2;
} catch (e) {
return DateTime.now().subtract(const Duration(days: 9000));
}
}