How to use the jalaali-js.jalaaliMonthLength function in jalaali-js

To help you get started, we’ve selected a few jalaali-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kiarash-Z / react-modern-calendar-datepicker / src / shared / localeUtils.js View on Github external
const getMonthLength = date =>
    isGregorian
      ? new Date(date.year, date.month, 0).getDate()
      : jalaali.jalaaliMonthLength(date.year, date.month);

jalaali-js

Converts Gregorian and Jalaali calendars to each other

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis