techgaun/ad-bs-converter

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

Open

#6 aperta il 21 ago 2018

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (16 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (29 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

.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

Guida contributor