PHP cal_to_jd() Function

The cal_to_jd() function converts a date in a specified calendar to Julian Day Count.The cal_to_jd() function calculates the Julian day count for a date in the specified calendar.cal_to_jd() calculates the Julian day count for a date in the specified calendar. Supported calendars are CAL_GREGORIAN, CAL_JULIAN, CAL_JEWISH and CAL_FRENCH.

ParameterDescription
calendar                                          Required.Calendar to convert from.
month                                          Required.Month as a number
day                                          Required.Day as a number
year                                          Required.Year as a number

Example -