PHP jdmonthname() Function

PHP jdmonthname Function


Definition :

The jdmonthname() function is a built-in function in PHP.The jdmonthname() function is used to returns a month name.

Syntax

 jdmonthname(jd,mode);

Parameter:
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.)

Following examle return the abbreviated Gregorian monthname of 20th March, 2005

Output : Mar