how to converting hijri to gregorian date by joda

2019-05-15 02:51发布

i found converting gregorian to hijri by joda time in java, but i want to convert specific Hijri date to Gregorian using joda-time .

also if there any way may help.

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-05-15 03:00

This works:

    Chronology iso = ISOChronology.getInstanceUTC();
    Chronology hijri = IslamicChronology.getInstanceUTC();
    DateTime dtHijri = new DateTime(1436,02,02,22,22,hijri);

    DateTime dtIso = new DateTime(dtHijri, iso);
查看更多
登录 后发表回答