How to convert hijari date to gregorian date in java script?

I use intalio editer in that I want to convert the hijari date to a gregorian date or vice versa. we are writing code in a java script using jsx3, so please help me out.

+5
source share
3 answers

This helps to understand that Muslims refer to the Gregorian calendar as Masihi. Googling for "hijrah to masihi converter" turns this page as a second hit: http://www.islamicity.com/PrayerTimes/defaultHijriConv.asp

The javascript code contains two functions GregToIsl and IslToGreg that do what you want.

There is a copyright notice on this page, so you should not just copy and paste the code. But the functions are short enough so you can extract the appropriate mathematical data from them.

The algorithm / algorithm itself is almost a thousand years old, so it should not have any legal restrictions.

0
source

For Gregorian-> Hijiri see here

A bi-directional version of C # here that can be converted to Javascript

EDIT: A great page and converters can be found here . This page says:

All calculations are performed in JavaScript in a native browser; the complete source code is embedded or linked to this page, and you can download their files to your computer and use even if they are not connected to the Internet.

which tells me that you can use the code, but you probably want to check it with the author of the page

+3
source
+1
source

All Articles