PHP Classes

File: Hijri_GregorianTest.php

Recommend this page to a friend!
  Classes of Layth Ibraheem   Hijri To Gregorian Date Convert   Hijri_GregorianTest.php   Download  
File: Hijri_GregorianTest.php
Role: Example script
Content type: text/plain
Description: to test the class.
Class: Hijri To Gregorian Date Convert
Convert dates between Gregorian to Hijri calendars
Author: By
Last change: no changes.
Date: 13 years ago
Size: 442 bytes
 

Contents

Class file image Download
<?php

include "Hijri_GregorianConvert.class";

$DateConv=new Hijri_GregorianConvert;


echo
"<br>";



$format="YYYY/MM/DD";
$date="1400/03/22";
echo
"src: $date<br>";
$result=$DateConv->HijriToGregorian($date,$format);

echo
"Hijri to Gregorian Result: ".$result."<br> gre to hijri:<br>";



$format="YYYY/MM/DD";
$date="1988/07/24";
echo
"src: $date<br>";

echo
$DateConv->GregorianToHijri($date,$format);



?>