static String dateToString(DateTime dateTime) { try { return DateFormat('dd-MM-yyyy').format(dateTime); } catch (e) {} return ''; }