toEnglishDay method

String toEnglishDay()

Implementation

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