toPersianDay method

String toPersianDay()

Implementation

String toPersianDay() {
  String day = this;
  day = day.replaceAll("Sunday", "یک شنبه");
  day = day.replaceAll("Monday", "دو شنبه");
  day = day.replaceAll("Tuesday", "سه شنبه");
  day = day.replaceAll("Wednesday", "چهار شنبه");
  day = day.replaceAll("Thursday", "پنج شنبه");
  day = day.replaceAll("Friday", "جمعه");
  day = day.replaceAll("Saturday", "شنبه");
  return day;
}