Search code examples
databasehibernatepostgresqlgregorian-calendarhijri

Hijri Date Inserting to the Database


In my database, I used gregorian Date. I want to insert hijri date. How can it be done or is there any problem with it. I used hibernate and JPA.

e.g. 2/30/1433 is hijri date. However, february is at most 29 days. In that case, is there any error?

best regards


Solution

  • I guess the best is convert hijri to gregorian. It is not important to convert correctly, if it can be reconvert to same hijri date.