getDateTimeNowString function

String getDateTimeNowString()

Implementation

String getDateTimeNowString() {
  var date = DateTime.now();
  var asString = date.toUtc().toIso8601String();
  var xmlDate = asString.split('.').first;
  xmlDate += 'Z';
  return xmlDate;
}