static String dateTime(DateTime? time) { if (time == null) { return 'date-time'; } return DateFormat.yMd().add_Hm().format(time.toLocal()); }