What am I doing now?
Hebrew Date in PHP 
Tuesday, October 30, 2007, 01:20 PM - Scripts
Posted by Administrator

$gregorianMonth = date(n);
$gregorianDay = date(j);
$gregorianYear = date(Y);

$jdDate = gregoriantojd($gregorianMonth,$gregorianDay,$gregorianYear);

$hebrewMonthName = jdmonthname($jdDate,4);

$hebrewDate = jdtojewish($jdDate);

list($hebrewMonth, $hebrewDay, $hebrewYear) = split('/',$hebrewDate);

echo "$hebrewDay $hebrewMonthName $hebrewYear";


This will convert the western date in to the Jewish date, enjoy!
1 comment ( 70 views )   |  0 trackbacks   |  permalink   |   ( 2.9 / 433 )

<<First <Back | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Next> Last>>