WriteToXmlUnscopedDatesOnly method

void WriteToXmlUnscopedDatesOnly(
  1. EwsServiceXmlWriter writer,
  2. String xmlElementName
)
Writes to XML without scoping the dates and without emitting times. The writer. Name of the XML element.

Implementation

void WriteToXmlUnscopedDatesOnly(
  EwsServiceXmlWriter writer,
  String xmlElementName,
) {
  final dateOnlyFormat = DateFormat("yyyy-MM-dd'T'00:00:00", "en_US");

  TimeWindow._WriteToXml(
    writer,
    xmlElementName,
    dateOnlyFormat.format(StartTime),
    dateOnlyFormat.format(EndTime),
  );
}