toStringDE method

String toStringDE (Weekday input)

Converts a Weekday to the corresponding German string.

Implementation

static String toStringDE(Weekday input) {
  String name;

  switch (input) {
    case Weekday.Monday:
      name = 'Montag';
      break;

    case Weekday.Tuesday:
      name = 'Dienstag';
      break;

    case Weekday.Wednesday:
      name = 'Mittwoch';
      break;

    case Weekday.Thursday:
      name = 'Donnerstag';
      break;

    case Weekday.Friday:
      name = 'Freitag';
      break;
  }

  return name;
}