X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP jewishtojd() Function

PHP Calendar Reference PHP Calendar Reference

Example

Convert a Jewish date to a Julian Day Count:

<?php
$jd=jewishtojd(6,20,2007);
echo $jd;
?>

Run example »

Definition and Usage

The jewishtojd() function converts a date from the Jewish Calendar to a Julian Day Count.

Note: Although this function can handle dates back to year 1 (3761 B.C.), notice that in the beginning there was no formula to determine the start of a month. A new month was started when the new moon was first observed.

Tip: Look at the jdtojewish() function to convert a Julian Day Count to a Jewish date.


Syntax

jewishtojd(month,day,year);

Parameter Description
month Required. Specifies the month as a number from 1 to 13
day Required. Specifies the day as a number from 1 to 30
year Required. Specifies the year as a number between 1 and 9999

Technical Details

Return Value: Returns a Julian Day number
PHP Version: 4+


PHP Calendar Reference PHP Calendar Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook