Jump to content

Convert Numeric Month to Name Problem


mickeymouse
 Share

Recommended Posts


$mydt=$mymm.','.$mydd.','.$myyr;
print("$mydt<br>");  ------------------>= 1,1,2020
$myjd=gregoriantojd($mydt);
print("$myjd<br>");  ------------------>= blank (why???)
$myname=jdmonthname($myjd,0);
print("$myname<br>");  ---------------->= blank (why???)

W3 Documentation:
$jd=gregoriantojd(1,13,1998);
echo jdmonthname($jd,0);  ------------>= Jan

It seems to me my code agrees with the documentation but it doesn't work.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...