Closed fardinfrd closed 3 years ago
Hi @fardinfrd I was chacked methods but it worked currectly.
PersianDate persianDate = new PersianDate(); // result is current date, such as 1399/07/30
persianDate.setShYear(1398)
.setShMonth(12)
.setShDay(29);
Log.i("LOG","Date is" + PersianDateFormat.format(persianDate,null)); //return پنجشنبه 29 اسفند 1398
Although there is a method called initJalaliDate
for initiation date with year, month, and day.
Let me know if you have any problems.
Hi Saman
Suppos current date is end of month, for example 30 Mehr 1399, when I call PersianDate constructor and set date to 1398/12/29 the result date has wrong result
It seems to need another constructor. (PersianDate(year, month, day))
thanks