I have a PHP script that outputs an array of data. This is then transformed into JSON using the json_encode() function. My issue is I have a date within my array and it’s not in the correct JavaScript format. How can I convert this within PHP so it is? Instead of the above for the date I need the equivalent
Tag: date-conversion
Converting Gregorian date to Hijri date
How do you convert Gregorian dates to Islamic Hijri dates using JavaScript? Answer This converts current computer date to hijri. And with a little modification you can achieve that this snippet change any date to islamic Taken from This site