Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature for formatting and parsing english date #78

Open
aj3sh opened this issue Feb 1, 2024 · 0 comments
Open

Add feature for formatting and parsing english date #78

aj3sh opened this issue Feb 1, 2024 · 0 comments

Comments

@aj3sh
Copy link
Member

aj3sh commented Feb 1, 2024

JavaScript lacks an easy way to format/parse Date objects. Let's create a utility from NepaliDate.

The APIs would look like the following:

  • nepaliDateObj.formatEnglishDate("YYYY-MM-DD")
  • nepaliDate = NepaliDate.parseEnglishDate("2018-12-48", "YYYY-MM-DD")

Use Cases

  • Assists in initializing NepaliDate from an English date string.
  • Facilitates obtaining the English date of a NepaliDate in a specific format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant