Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2003
    Posts
    137

    Unanswered: 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

  2. #2
    Join Date
    Feb 2002
    Location
    San Francisco, CA
    Posts
    441
    No, but I searched google;

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

    You should too.

  3. #3
    Join Date
    Apr 2003
    Posts
    137
    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.

  4. #4
    Join Date
    Feb 2002
    Location
    San Francisco, CA
    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?

  5. #5
    Join Date
    Jun 2003
    Location
    Netherlands
    Posts
    4
    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 10:32.

  6. #6
    Join Date
    Jun 2003
    Posts
    1

    Re: Convert Gregorian date to Islamic Hijri date

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •