static DateTime toDate(String value, {String format = kDateFormat}) { try { return DateFormat(format).parse(value); } catch (e) { return DateTime.now(); } }