toWmataStringDateOnly method

String toWmataStringDateOnly()

Formats the DateTime to WMATA API format, but only the date.

The WMATA API format is a string in the format of YYYY-MM-DD.

Implementation

String toWmataStringDateOnly() {
  final String str = toWmataString();
  return str.substring(0, str.indexOf('T'));
}