arabic/islamic date in javascript

I am looking for a javascript that displays the date in
Arabic/Islamic terms. This would require converting the
Georgian dates to the equivilant Arabic/Islamic date.
lufupaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

barakpCommented:
what does that look like?
0
lufupaAuthor Commented:
18.8.97

if you look at this website, it will give you more info.
the site has a cgi based converter for arabic dates. i am not
able to use that & so i am looking for a javascript based version.
0
lufupaAuthor Commented:
18.8.97

if you look at this website, it will give you more info.
the site has a cgi based converter for arabic dates. i am not
able to use that & so i am looking for a javascript based version.

http://wwwcgi.umr.edu/cgi-bin/cgiwrap/msaumr/hijri
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

pmcintosCommented:
I'm not going to answer because I have absolutely no idea what kind of conversion factors you need to use or how similar a format arabic and gregorian dates are. ( yes, I'm from north america ) anyway...You can use the getTime() function on your page, and it will return the number of seconds since January 1, 1997.  You could then write the code to convert and display that date in Arabic form.  That's my 2 cents... it might help...

I also beleive that if you are asking for someone to write all the code required for you, you will have to supply WAY MORE information on how to convert that data.  ( I seriously doubt that any expert on this site wants to write this code for you for points...it would be more like dollars.
I hope you get the answer you're looking for.

By the way...the page format looks fantastic.  Very clean and professional.

Pete
0
pmcintosCommented:
Excuse me....I made a typo....

I said
"number of seconds since January 1, 1997"

that's obviously wrong..... It should be:

"number of seconds since January 1, 1970"
0
kollegovCommented:
Lufupa, if you will follow further, you will find
authors of this CGI converter. Do not stop, follow his page
and you will find download of his program.
This package include C source.
Well, last step, if you have enough programming skills
you can rewrite conversion algorithm.
Otherwise you can ask somebody to do this work for you.


0
909233Commented:
If you wanted to use a different language--then my advice to
you was obtain the appropiate font for that language and
apply it to your browser....
bob
0
mmooreCommented:
I'm not sure how such a calendar could work seeing as how
the Islamic year is unpredictable. By that I mean that
Ramadan starts and stops according to the sighting of
the moon by 3 reliable witnesses. Since we don't know when
the moon will be sited how can we make a future calendar.
Now if you are talking about the past, then we must know
when the moon was sighted on each of the lunar years.
  But Assuming that you consider this a trivial point,
It seem to me that you could use any one of the astrological
tools available to find the formula. These usually involve
the use of a book called and Ephemiris. (check my spelling
here) So, go to any astrologer and ask how to calculate
x number of moons ago.
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mmooreCommented:
PS. If we can find a method to do the conversion, I might
like to try writing the JavaScript which does it.
0
lufupaAuthor Commented:
26.8.97

Thanks to all who responded to this question. In my the view the
question still remain unanswered. It seems the only it will work
is by the cgi program written by the person whose link i provided
in my previous comments
0
mmooreCommented:
How do you know that the cgi is correct? Have you actually
confirmed any dates? And if so, for how far back? I would
not be surprised if the cgi is not very accurate.
I'd still like to persue but it may take a while.
There is a email list called History of Islam where there
are very learned scholars who may be able to answer
questions about the calender. I will ask there. I have set
up a temporary address where you can contact me if you
are interested in continuing this. latif@kirin.tymnet.com
Thanks for the points. :-)
0
lufupaAuthor Commented:
26.8.97

I am still very much interested in finding out a solution for
this script & have made a note of your email. I will email the person who wrote the cgi for information and i will email you with the reply. Thanking you for you help and advice

Kassim
0
abdylasCommented:
http://pages.intnet.mu/islam/dates.htm

here is the link to explain of the Islamic Calendar. Maybe it will give you some idea how to convert.

Regards Ades
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.