Current Location: Home> Function Categories> jdmonthname

jdmonthname

Returns the name of the month.
Name:jdmonthname
Category:Uncategorized
Programming Language:php
One-line Description:Returns the name of the month.

Definition and usage

jdmonthname() function returns the name of the month.

Example

Return to the abbreviation string of the month of the Gregorian calendar on October 15, 1980:

 <?php
$jd = gregoriantojd ( 10 , 15 , 1980 ) ;
echo jdmonthname ( $jd , 0 ) ;
?>

Run the instance

grammar

 jdmonthname ( jd , mode ) ;
parameter describe
jd Required. Numbers (Julian day count).
mode

Optional. Defines which calendar to convert Julian day counts to and how to return the month name (full name or abbreviation). Mode value:

  • 0 - Gregory Calendar - Abbreviation (Jan, Feb, Mar, ...)
  • 1 - January, February, March, ...)
  • 2 - Julian Calendar - Abbreviation (Jan, Feb, Mar, ...)
  • 3 - Julian Calendar (January, February, March, ...)
  • 4 - Jewish calendar (Tishri, Heshvan, Kislev, ...)
  • 5 - French Republic Calendar (Vendemiaire, Brumaire, Frimaire, ...)
Similar Functions
Popular Articles