Comments (6)
I see.
It got messed up because of month.
Thank you very much.
from nepali-date.
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.98. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
from nepali-date.
Hi @amarbibek,
Sorry for the late reply.
The constructor is as follows:
NepaliDate(year: number, monthIndex: number, date: number)
You are passing in date for the month of Ashwin whose month index is 5. So, it is showing the date of next month. For Bhadra, the index is 4. The month index is expected in this constructor. This is done to make it consistent with the existing javascript Date library which uses the same approach.
Reference from the doc: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date
Here are the constructor docs:
https://subeshb1.github.io/Nepali-Date/classes/nepalidate.html
from nepali-date.
Closing this as a duplicate of #25
Feel free to re-open ore create another issue if your queries are not met.
from nepali-date.
Thanks for the response.
I could figure that out.
My actual concern is the day of the week, "०८, आश्विन २०७७" was "सोमबार " not "बिहिबार".
from nepali-date.
The weekday is Thursday for Ashwin 8, 2077
:
Is it not right? Do let me know. Thanks!
from nepali-date.
Related Issues (20)
- Add string formatting HOT 1
- Add date parsing api HOT 1
- Add documentation in read me
- Add toString() and toValue() override
- Add spec coverage HOT 1
- Refactor Code base HOT 1
- Invalid regular expression: invalid group specifier name in Safari HOT 2
- current date issue HOT 2
- Support parsing nepali date given in Nepali language
- Match Day of the week formatting with moment HOT 1
- Wrong value when parsing nepali date string HOT 1
- Add contributing guidelines HOT 1
- Migrate to github actions
- Js Date stored in Instance Object is a day behind the date object. HOT 1
- The Date Doesn't Fall Within 2000/01/01 - 2090/12/30 HOT 1
- The automated release is failing 🚨
- The automated release is failing 🚨 HOT 7
- Wrong month end date value for Jestha 2081 and Ashar 2081 HOT 2
- The automated release is failing 🚨 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nepali-date.