Skip to content

totalDaysInMonth separate function for getting the total days in the given month #7

@ohmmee

Description

@ohmmee

new Date(year, month, 0).getDate( ) can be used for english

similar type of inbuilt function for getting the last date of the month of BS date if there's any in the inner array of year and months data of every years.

The library gives the feature while conversion from AD to BS but not while passing BS
en: {
totalDaysInMonth: totalDays
}
is available but not for BS date like ('2075/05/06')
gotta do the hack like converting to AD, then getting totalDaysInMonth and if I'm working with only nepali months, parsing only year and month of BS and giving default value to date and the convert to AD and get totalDaysInMonth

Thankyou

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions