PHP jdmonthname()Function
Examples
Returns the abbreviated month string of the Gregorian calendar for January 13, 1998:
<?php
$jd=gregoriantojd(1,13,1998);
echo jdmonthname($jd,0);
?>
$jd=gregoriantojd(1,13,1998);
echo jdmonthname($jd,0);
?>
Run Example »
Definition and Usage
The jdmonthname() function returns the name of the month.
Syntax
jdmonthname(jd,mode);
| Parameters | Description |
|---|---|
| jd | Required. A number (Julian day count). |
| mode | Optional. Defines which calendar the Julian day count is converted to, and how to return the month name (full or abbreviated). Mode values:
|
Technical Details
| Return Value: | Returns the month name for the specified Julian day andcalendarthe month name of the calendar. |
|---|---|
| PHP Version: | 4+ |
PHP Calendar Reference Manual Other Extensions