View Full Version : how to display date in this format "Muharram 12, 1427 Hijri "

04-27-2006, 12:23 PM
this script works fine but i dont know how to customize it to get the required results

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

04-27-2006, 01:27 PM
Can you post the PHP code? That;s much easier to debug you know.;)

04-27-2006, 03:13 PM
actually i dont have code
i just get this script from a site

04-27-2006, 03:35 PM
if you dont have the code then how do you plan to customise it?

04-27-2006, 03:44 PM
You cant customise their script and they dont have any options to do what you want to do, the only way to do what you want is to do something like

$dateparts = explode(" ", file("http://yse-uk.com/hijridate/hijridate.php?style=hijri"));
echo $dateparts[1].", ".$dateparts[0]." ".str_replace("AH", "", $dateparts[2]);