![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Experts, I wanted help with converting Hijri Date to Gregorian Date and visa versa in Sybase. A lot of googling helped me find how to do it in Oracle, select to_char(sysdate,'DD/MM/YYYY','NLS_CALENDAR=''Arabic Hijrah''') ,to_char(sysdate,'DD/MM/ YYYY','NLS_CALENDAR=''Gregorian''') from dual If any one has any clue how it can be done in Sybase will be greatly appreciated. Cheers, Rosh |
#3
| |||
| |||
|
|
On Thursday, July 12, 2012 12:16:38 AM UTC-6, Rosh wrote: Hi Experts, I wanted help with converting Hijri Date to Gregorian Date and visa versa in Sybase. A lot of googling helped me find how to do it in Oracle, select to_char(sysdate,'DD/MM/YYYY','NLS_CALENDAR='& #39;Arabic Hijrah''&#39 ,to_char(sysdate,'DD/MM/YYYY','NLS_CALENDAR='& #39;Gregorian''&#39 ![]() from dual If any one has any clue how it can be done in Sybase will be greatly appreciated. Cheers, Rosh There is nothing direct built-in at this time. The easiest way to do it would probably be to enable the ASE Java feature and import a Java class that can do the conversion. I found several possible implementations via google without any trouble. -bret |
#4
| |||
| |||
|
|
Thanx for the reply Bret... Enabling Java is not an option for us... can u throw some more light on " I found several possible implementations via google without any trouble" |
![]() |
| Thread Tools | |
| Display Modes | |
| |