String? getStringFromDateTime(DateTime? dateTime) { if (dateTime != null) { return dateTime.toUtc().toIso8601String(); } return null; }