PHP jdmonthname() function

PHP jddayofweek() function
PHP jdtofrench() function

In this article, you will learn how to get the month name of the specified date or of the current date. The jdmonthname() function does the job in PHP.

WHat is the syntax of the jdmonthname() function in PHP?

jdmonthname(jd,mode);
ParametersDetails
jdJulian Day number – Required
modeOptional. Choose the calendar for the Julian Day count conversion.
Also, choose the output format.
0 – Gregorian – output like Jan, Feb, Mar, etc.
1 – Gregorian – output like January, February, March, etc.

2 – Julian – output like Jan, Feb, Mar, etc.
3 – Julian – output like January, February, March, etc.

4 – Jewish – output like Tishri, Heshvan, Kislev, etc.
5 – French Republican – output like Vendemiaire, Brumaire, Frimaire, etc.
PHP jdmonthname() method

Examples of the jdmonthname() function

Example 1. The following example returns the month name for the date 04 January, 1998.

<?php
$j_d=gregoriantojd(1,04,1998);
echo jdmonthname($j_d,0);
?>
PHP jddayofweek() function
PHP jdtofrench() function
en English
X
Scroll to Top