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

PHP jdtojewish() Function

PHP Calendar Reference PHP Calendar Reference

Example

Convert a Julian Day Count to a Jewish date:

<?php
$jd=jdtojewish(1789430);
echo $jd;
?>

Run example »

Definition and Usage

The jdtojewish() function converts a Julian Day Count to a Jewish date.

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


Syntax

jdtojewish(jd,hebrew,fl);

Parameter Description
jd Required. A Julian Day number
hebrew Optional. When set to TRUE it indicates Hebrew output format. FALSE is default
fl Optional. Defines the Hebrew output format. The available formats are:
  • CAL_JEWISH_ADD_ALAFIM_GERESH
  • CAL_JEWISH_ADD_ALAFIM
  • CAL_JEWISH_ADD_GERESHAYIM

Technical Details

Return Value: Returns a Jewish date in format "month/day/year"
PHP Version: 4+
Changelog: The hebrew parameter was added in PHP 4.3, and the fl parameter was added in PHP 5.0


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