If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Convert Gregorian date to Islamic Hijri date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-03, 21:24
jrahma jrahma is offline
Registered User
 
Join Date: Apr 2003
Posts: 101
Convert Gregorian date to Islamic Hijri date

any one knows how can convert from Gregorian date to the islamic Hijri date using ASP 3.0?

Many Thanks,
Jassim Rahma
Reply With Quote
  #2 (permalink)  
Old 05-25-03, 05:19
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
No, but I searched google;

http://www.google.com/search?hl=en&i...egorian+Hijri+

You should too.
Reply With Quote
  #3 (permalink)  
Old 05-25-03, 18:44
jrahma jrahma is offline
Registered User
 
Join Date: Apr 2003
Posts: 101
thanks....


I also check google but found all ready tools...I want to know the formula!! I contacted some of them and they refused to give.
Reply With Quote
  #4 (permalink)  
Old 05-26-03, 06:04
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
I cannot help you any further on this, as I have not idea about this calendar format.

Surely though it would be a case of there being different amount of months/days in months? You could work this out no?
Reply With Quote
  #5 (permalink)  
Old 06-17-03, 09:30
njitter njitter is offline
Registered User
 
Join Date: Jun 2003
Location: Netherlands
Posts: 4
Quote:
Originally posted by jrahma
thanks....


I also check google but found all ready tools...I want to know the formula!! I contacted some of them and they refused to give.
Google has all the answers..

The result is an approximate date. Every Hijri year corresponds to one Gregorian year and vice versa. The conversion is based on the follwing formulae: G=H-(H/33)+622 and H=G-622+(G-622)/32 (Carl Brockelmann: Arabische Grammatik, 12. neubearbeitete Auflage, Leipzig: Harrassowitz, 1948, p. 209). If you want to convert exact dates including month and day please go to the converter offered by the website Conversion of Islamic and Christian dates by J. Thomann or to the Gregorian-Hijri Dates Converter developed by Waleed Muhanna.

At http://www.ori.unizh.ch/hegira.html you can look at the source of the page to view some Javascript..

Looks pretty accurate to me...

Last edited by njitter; 06-17-03 at 09:32.
Reply With Quote
  #6 (permalink)  
Old 06-22-03, 08:28
wafaei wafaei is offline
Registered User
 
Join Date: Jun 2003
Posts: 1
Re: Convert Gregorian date to Islamic Hijri date

Quote:
Originally posted by jrahma
any one knows how can convert from Gregorian date to the islamic Hijri date using ASP 3.0?

Many Thanks,
Jassim Rahma
dear jassim,

u can use this vb code or send me email to give u my dll file
mileto:awafaei@softnetcorp.com

Function ConvertDateString(ByRef StringIn As String, ByRef OldCalendar As Integer, ByVal NewCalendar As Integer, ByRef NewFormat As String) As String
Dim SavedCal As Integer
Dim d As Date
Dim s As String
SavedCal = Calendar
Calendar = OldCalendar
If IsDate(StringIn) Then
d = CDate(StringIn)
Calendar = NewCalendar
s = CStr(d)
ConvertDateString = Format(s, NewFormat)
ConvertDateString = s
Else
ConvertDateString = ""
End If
Calendar = SavedCal
End Function
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On