-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
This feature allows us to take input from Devanagari strings such as "२०७८-०१-१८" into the NepaliDate object. The current parse
module should handle the Devanagari string so that the NepaliDate
object can be initialized from such class.
// const nepaliDate = new NepaliDate("२०७८-०१-१८")
// updated based on comments
const nepaliDate = NepaliDate.parseNepaliFormat("२०७८-०१-१८", "YYYY-MM-DD")
The steps for parsing are like below:
- The input (can be both English or Devanagari string)
- Translate the Devanagari date strings to English strings. Translation includes numbers, months, and months abbrs.
- Use the translated English string for parsing.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status