PHP JDMonthName() Function
Complete PHP Calendar Reference
Definition and Usage
The JDMonthName() function returns a month name.
Syntax
| Parameter |
Description |
| jd |
Required. A number (a Julian day count) |
| mode |
Optional. Defines which calendar to convert the Julian day
count to, and what type of month names are to be returned. Mode
values:
- 0 - Gregorian - abbreviated (Jan, Feb, Mar, etc.)
- 1 - Gregorian (January, February, March, etc.)
- 2 - Julian - abbreviated (Jan, Feb, Mar, etc.)
- 3 - Julian (January, February, March, etc.)
- 4 - Jewish (Tishri, Heshvan, Kislev, etc.)
- 5 - French Republican (Vendemiaire, Brumaire, Frimaire, etc.)
|
Example
<?php
$jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jdmonthname($jd,1));
?>
|
The output of the code above could be:
Complete PHP Calendar Reference

The Altova MissionKit, recent winner of the Jolt Product Excellence and Productivity Award for Best Development Environment,
is an integrated suite of tools ideal for:
- XML development
- Web & Web services development
- Data mapping & integration
- Rendering & publishing XML & database data
- XBRL validation, taxonomy editing, transformation & rendering
The MissionKit for XML Developers includes XMLSpy®, MapForce®, and StyleVision® plus 3 additional tools for less than the price of 2.
Try all 6 products free for 30 days!
Download a fully-functional free trial
|
|
|
|