static String gethour(DateTime dateTime) { var formatter = DateFormat('HH'); return formatter.format(dateTime.toLocal()); }