X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP jdmonthname() Function

PHP Calendar Reference PHP Calendar Reference

Example

Return the abbreviated Gregorian monthname of 13th January, 1998:

<?php
$jd=gregoriantojd(1,13,1998);
echo jdmonthname($jd,0);
?>

Run example »

Definition and Usage

The jdmonthname() function returns a month name.


Syntax

jdmonthname(jd,mode);

Parameter Description
jd Required. A Julian Day number
mode Optional. Specifies which calendar to convert the Julian Day Count to, and how the month name is to be returned. Mode values:
  • 0 - Gregorian - abbreviated form (Jan, Feb, Mar, etc.)
  • 1 - Gregorian (January, February, March, etc.)
  • 2 - Julian - abbreviated form (Jan, Feb, Mar, etc.)
  • 3 - Julian (January, February, March, etc.)
  • 4 - Jewish (Tishri, Heshvan, Kislev, etc.)
  • 5 - French Republican (Vendemiaire, Brumaire, Frimaire, etc.)

Technical Details

Return Value: Returns the month name for the specified Julian Day and calendar
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 HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook