Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Mar 2005
    Location
    Pakistan
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to display date in this format "Muharram 12, 1427 Hijri "

    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'); ?>
    God helps those who help others.

  • #2
    Regular Coder Masterslave's Avatar
    Join Date
    Dec 2005
    Posts
    287
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Can you post the PHP code? That;s much easier to debug you know.

  • #3
    Regular Coder
    Join Date
    Mar 2005
    Location
    Pakistan
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    actually i dont have code
    i just get this script from a site
    God helps those who help others.

  • #4
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    if you dont have the code then how do you plan to customise it?

  • #5
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    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
    PHP Code:
    $dateparts explode(" "file("http://yse-uk.com/hijridate/hijridate.php?style=hijri"));
    echo 
    $dateparts[1].", ".$dateparts[0]." ".str_replace("AH"""$dateparts[2]); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •