samanzamani / PersianDate

Persian date for android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Date conversion not work properly !

behiunforgiven opened this issue · comments

I think this code should work fine but it does not :

PersianDate startPersianDate = new PersianDate();

startPersianDate.setShDay(1);
startPersianDate.setShMonth(11);
startPersianDate.setShYear(1396);
long startDate = startPersianDate.getTime();

but startDate shows the current date !

Thank you for your report. i release update for this until weekend. for now you can use this code:

PersianDate persianDate = new PersianDate();
persianDate.initJalaliDate(1396,11,1);
long startDate = persianDate.getTime();

Fixed in version 0.2.