techgaun/ad-bs-converter

handle the argument input like NaN.bs2ad('2075/04/00')

Open

#6 opened on Aug 21, 2018

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (16 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (29 stars)
PR merge metrics
 (PR metrics pending)

Description

.bs2ad('2075/04/00') gives out the last month's converted date if possible, handle the way the input is received

like if('2018/02/31') is passed as an argument for ad2bs then, it also gives out result which is absurd because feb cant have 31 days

Contributor guide