techgaun/ad-bs-converter

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

Open

#7 创建于 2018年8月21日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (16 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (29 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南