Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

need to convert gregorian date to hijri date

AteeqMay 8 2023

Hi,

Form 6i,

Oracle 11.2.0.4 , windows server 2016

I need to convert gregorian date to hijri date.

I have two date fields for Gregorian and Hijri.

I select date in gregorian field using calendar and the format is DD-MON-YYYY.

in when validate item on gregorian field, i am using below code

Select To_Date(To_Char(TO_DATE(:supplier.sup_cr_expiry,'DD-MM-YYYY','Nls_Calendar = '''||'Gregorian'''), 'DD-MM-YYYY',
'Nls_Calendar = '''||'Arabic Hijrah'''), 'DD-MM-YYYY') into :supplier.sup_cr_expiry_hijri
from Dual;

i get error ORA-01841.

Please suggest any solution

This post has been answered by Solomon Yakobson on May 8 2023
Jump to Answer
Comments
Post Details
Added on May 8 2023
2 comments
1,581 views