Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP jdmonthname() Function

PHP jdmonthname() Function

PHP Calendar Reference Manual PHP Calendar Reference Manual

Example

Return the abbreviated month name in the Gregorian calendar for January 13, 1998:

Run Example »


Definition and Usage

The jdmonthname() function returns the name of a month.

Syntax

jdmonthname(

jd,mode);

Parameters Description
jd Required. A number (the Julian day count).
mode Optional. Defines which calendar the Julian day count is converted to, and how the month name is returned (full or abbreviated). Mode values:
  • 0 - Gregorian calendar - abbreviated form (Jan, Feb, Mar, ...)
  • 1 - Gregorian calendar (January, February, March, ...)
  • 2 - Julian calendar - abbreviated form (Jan, Feb, Mar, ...)
  • 3 - Julian calendar (January, February, March, ...)
  • 4 - Jewish calendar (Tishri, Heshvan, Kislev, ...)
  • 5 - French Republican calendar (Vendemiaire, Brumaire, Frimaire, ...)
  • |

    Technical Details

    Return Value: Returns the name of the month for the specified Julian day and calendar calendar.
    PHP Version: 4+

    PHP Calendar Reference Manual PHP Calendar Reference Manual