samanzamani/PersianDate

Week

SudoDios opened this issue · 5 comments

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

i using getDayOfWeek but is wrong start weekday of month.

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 `چهارشنبه`

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)

Do you really have a library for Hijri Date?

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