how to converting hijri to gregorian date by joda

2019-05-15 02:15发布

问题:

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:

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);