samanzamani / PersianDate

Persian date for android
BSD 3-Clause "New" or "Revised" License
326 stars 40 forks source link

Week #61

Closed SudoDios closed 2 years ago

SudoDios commented 2 years ago

Hi. How to get first week day of month For example, the first day of the month is Tuesday

SudoDios commented 2 years ago

i using getDayOfWeek but is wrong start weekday of month.

samanzamani commented 2 years ago

Hi @SudoDios You can initiate PersianDate with desire Jalali date and after that use dayName method to get the day name in Farsi.

PersianDate pDate = new PersianDate().initJalaliDate(1400,10,1);
pDate.dayName();//It returns `چهارشنبه`
SudoDios commented 2 years ago

No no. I did not mean to name the day. I want to get the first day of the week in the month (what day does the moon start)

SudoDios commented 2 years ago

Do you really have a library for Hijri Date?

SudoDios commented 2 years ago

I resolved

No no. I did not mean to name the day. I want to get the first day of the week in the month (what day does the moon start)

I solved my problem. Thankful