toNepaliMonthCalendar

Converts a CustomCalendar object to a NepaliMonthCalendar object.

This function extracts the year, month, total days in the month, first day of the month, and last day of the month from the CustomCalendar and creates a new NepaliMonthCalendar object with those values.

Return

A NepaliMonthCalendar object representing the same month as the CustomCalendar.