jdmonthname: Month name from Julian day count

$day_number = cal_to_jd(CAL_JULIAN,12,4,2013);
$month_name = jdmonthname($day_number,2);
echo $month_name;
The output is Dec

By changing the mode we can get month in different formats.
0:Jan, Feb, Mar ..( Gregorian )
1:January, February,March   ( Gregorian )
2:Jan, Feb, Mar ( Julian )
3:January, Februry, March ( Julian )
4:Tishri, Heshvan .. (Jewish )
5:Vendemiaire, Brumaire, Frimaire ( French )
Syntax
jdmonthname(Julian_day_count, Mode )
Here is an example.

Getting current month name

Easy way is to use the date format to get current month name.
echo date('M');
Output is Mar
date("m")
oupt put is 03
Unix timestamp to Julian day count
Date Picker using JQuery
Calendar Functions
Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here





    PHP video Tutorials
    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer