postgresDate static method
Implementation
static String postgresDate(String? date) {
if(date == null) return '';
DateTime dateTime = DateTime.parse(date).toLocal();
String formattedDate;
formattedDate = DateFormat('yyyy-MM-dd').format(dateTime);
return formattedDate;
}