W3Schools.com

PHP JDToJewish() Function


PHP Calendar Reference Complete PHP Calendar Reference

Definition and Usage

The JDToJewish() function converts a Julian day count to a Jewish calendar date.

Syntax

jdtojewish(jd,hebrew,fl)

Parameter Description
jd Required. A number (a Julian day count)
hebrew Optional. True indicates Hebrew output format
fl Optional. Defines the Hebrew output format. The available formats are:
  • CAL_JEWISH_ADD_ALAFIM_GERESH
  • CAL_JEWISH_ADD_ALAFIM
  • CAL_JEWISH_ADD_GERESHAYIM


Example

<?php
echo(jdtojewish(gregoriantojd(10,8,2002)) . "<br />");
echo(jdtojewish(gregoriantojd(10,8,2002),true));
?>

The output of the code above will be:

2/2/5763
ב חשון התשסג


PHP Calendar Reference Complete PHP Calendar Reference
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE