Definition and Usage
The JDMonthName() function returns a month name.Syntax
jdmonthname(jd,mode)
| 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:
|
Example
<?php
$jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jdmonthname($jd,1));
?>
$jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jdmonthname($jd,1));
?>
January