Hijri Date

Hijri Date
HijriDate

The Hijri Date project by the Usayd Corp. is a way of trying to encourage Muslims to use the Islamic calendar on their websites to increase self-awareness of Islam. Please link back to this page if you are using this service.

Looking for the HijriDate Wizard?

About the Islamic Calendar

The Islamic calendar or Muslim calendar (also called “Hijri calendar”, Arabic التقويم الهجري) is the calendar used to date events in many predominantly Muslim countries, and used by Muslims everywhere to determine the proper day on which to celebrate Islamic holy days. It is a lunar calendar having 12 lunar months in a year of about 354 days. Because this lunar year is about 11 days shorter than the solar year, Islamic holy days, although celebrated on fixed dates in their own calendar, usually shift 11 days earlier each successive solar year, such as a year of the Gregorian calendar. Islamic years are also called Hijra years because the first year was the year during which the Hijra occurred— Muhammad’s emigration from Mecca to Medina. Thus each numbered year is designated either H or AH, the latter being the initials of the Latin anno Hegirae (in the year of the Hijra).
Link Wikipedia

Hijri Date

Please read this thread if you are having issues with this service.

Plugin for WordPress platform

This plugin adds the Hijri Date to entries posted on a WordPress powered website which is fully customizable thanks to the featured option in the administration panel. This project is fully open source under the GNU General Public License so it is open to development and there is a roadmap for future development.

Link More info at Usayd Networks

PHP Calculation Script

This is the script that has been used to calcuate the Hijri Date in the WordPress plugin, and can be included in any webpage that can include .php files. This script is open source and is fully open to editing. The advantages of using this over the Hijri Date service are that you can customise it as much as you like and you are not reliant on an external server.

HijriDate Mod for phpBB forums

This mod has been externally constructed and is under the responsibility of the owner of the script. It uses the Hijri Date script used in the Hijri Date service and the Hijri Date plugin for WordPress to display the hijri date on phpBB forums.

Hijri Date tutorial/script for serendipity

This tutorial has been externally constructed and is under the responsibility of the owner of the script. It uses a hijri date script made by php4arab to show the hijri date on blog entries.

Hijri Date Service

Latest plans for the Hijri Date service include a wizard with completely customisable fonts, colours and sizes for your Hijri Date! Link Update! The Wizard has been completed

At the moment you can use any of the following methods to include the Hijri Date on your site without downloading anything.

Image

You can use this script to show the Hijri Date on your website as an image using image tags. To include this, add the following code where you want to show the Hijri Date.

» To show the HijriDate as an image in HTML use the following code:

<img src="http://yse-uk.com/hijridate/hijridate.php?style=image" alt="HijriDate" title="HijriDate">
MinimiseCustomise

» To show the HijriDate as an image in XHTML use the following code:

<img src="http://yse-uk.com/hijridate/hijridate.php?style=image" alt="HijriDate" title="HijriDate" />

» To show the HijriDate as an image in BB Code (forums) use the following code:

[img]http://yse-uk.com/hijridate/hijridate.php?style=image[/img]

PHP include

You can use this script to show the Hijri Date script on your website using a PHP include. To include this, add the following code where you want to show the Hijri Date.

<?php include('http://yse-uk.com/hijridate/hijridate.php'); ?>

MinimiseCustomise

» To show the Hijri date only use the following code:

<?php include('http://yse-uk.com/hijridate/hijridate.php?style=hijri'); ?>

» To show the Gregorian date only use the following code:

<?php include('http://yse-uk.com/hijridate/hijridate.php?style=greg'); ?>

» To show the Hijri date and Gregorian date with a break between them you can use one of the following:

<?php include('http://yse-uk.com/hijridate/hijridate.php?style=br'); ?>

XHTML:

<?php include('http://yse-uk.com/hijridate/hijridate.php?style=brx'); ?>

Javascript

You can use this method to include this script on a website that cannot use PHP, this has been tested on Blogger. Use the following code:

<script src="http://www.yse-uk.com/hijridate/hijridate.php?style=js" type="text/javascript"></script>

MinimiseCustomise

» To show the Hijri date only use the following code:

<script src="http://www.yse-uk.com/hijridate/hijridate.php?style=jsh" type="text/javascript"></script>

» To show the Gregorian date only use the following code:

<script src="http://www.yse-uk.com/hijridate/hijridate.php?style=jsg" type="text/javascript"></script>

» To show the Hijri date and Gregorian date with a break between them you can use one of the following:

<script src="http://www.yse-uk.com/hijridate/hijridate.php?style=jsbr" type="text/javascript"></script>
XHTML:
<script src="http://www.yse-uk.com/hijridate/hijridate.php?style=jsbrx" type="text/javascript"></script>

IFRAME

You can include this script using an IFRAME in HTML. If you can use one of the other methods then use them, otherwise use the following code:

<iframe frameborder="0" src="http://www.yse-uk.com/hijridate/hijridate.php" "scrolling="auto" width="100%" height="100%">Your user agent does not support frames or is currently configured not to display frames.</iframe>
MinimiseCustomise

» To show the Hijri date only use the following code:

<iframe frameborder="0" src="http://www.yse-uk.com/hijridate/hijridate.php?style=hijri" "scrolling="auto" width="100%" height="100%">Your user agent does not support frames or is currently configured not to display frames.</iframe>

» To show the Gregorian date only use the following code:

<iframe frameborder="0" src="http://www.yse-uk.com/hijridate/hijridate.php?style=greg" "scrolling="auto" width="100%" height="100%">Your user agent does not support frames or is currently configured not to display frames.</iframe>

» To show the Hijri date and Gregorian date with a break between them you can use one of the following:

<iframe frameborder="0" src="http://www.yse-uk.com/hijridate/hijridate.php?style=br" "scrolling="auto" width="100%" height="100%">Your user agent does not support frames or is currently configured not to display frames.</iframe>
XHTML:
<iframe frameborder="0" src="http://www.yse-uk.com/hijridate/hijridate.php?style=brx" "scrolling="auto" width="100%" height="100%">Your user agent does not support frames or is currently configured not to display frames.</iframe>

Modify the width and the height of iframe in order to properly display the hadith on your website.

Please note that the Hijri Date calcuation may (rarely) be off by a single day, unfortunately this is unavoidable in calcuated script. If you know of a better calcuation script please contact us.

More methods coming soon! Please feel free to contact us with your own scripts for different platforms, modifications of existing scripts, ideas or questions.

Looking for the HijriDate Wizard?


Search Search

Demo

Today's date is the 23 Safar 1431AH

Link This

Hijri Date


Hijri Date

Support

You can support this project and other projects by the Usayd Network by donating today

Help!

If you need help in implementing the Hijri Date please visit the Forum or contact us.

Recommended

The idea behind this service was derived from the Random Hadith service. Please check it out:

Random Hadith

YSE Ext. Hosting

This website has been tested on Opera 6, 7, Gecko (Firefox 1.x), IE 6, 5.5, 5.0, IE Mac 5.2, Safari.

Thank you for not using Internet Explorer!

607 access attempts blocked in the last 7 days.