Converts a given solar (Gregorian) date to a lunar (Chinese) date. The function calculates the corresponding lunar
year, month, day, and whether the month is a leap month. If the solar date is invalid or out of range, it returns
-1.
Parameters
date: Date
The solar date to convert. It should be a valid JavaScript Date object.
Converts a given solar (Gregorian) date to a lunar (Chinese) date. The function calculates the corresponding lunar year, month, day, and whether the month is a leap month. If the solar date is invalid or out of range, it returns -1.