I would like to convert this date: 09/13/1436 (this is Hijiri) to 2015-06-30 (this is Gregorian). I tried this:
function HijriToJD($m, $d, $y){ return (int)((11 * $y + 3) / 30) + 354 * $y + 30 * $m - (int)(($m - 1) / 2) + $d + 1948440 - 385; } $date = HijriToJD(09, 13, 1436); echo jdtogregorian($date);
and when I did the compilation, I got 10/7/2014. Does anyone have an idea?
date php
Khurian
source share