Comments (3)
I'm having the same issue. You can see the issue here. View the source of the months dropdown.
https://codesandbox.io/s/react-dropdown-date-example-7wvbk?file=/src/index.js
Screenshot
https://cln.sh/1VfeBbLIPIVDpKFgj6JL
from react-dropdown-date.
I did not understand.
Elaborate this with an example please.
For me month dropdown is starting with 1.
from react-dropdown-date.
Got it. I understood your concern.
In JavaScript month start from 0.
January is 0.
I kept the values like that to keep in sync with js month values. For easy conversion and easy use in js date.
There is not a way to change that.
from react-dropdown-date.
Related Issues (20)
- Infinite year dropdown HOT 2
- How to properly set default value with DropdownDate? HOT 2
- Why is month value a 0 based array? HOT 2
- Semantic UI compatibility?
- Input displaying one day off HOT 4
- Invariant Violation: Text strings must be rendered within a <Text> component. HOT 2
- Update componentWillMount HOT 1
- endDate incorrectly evaluated if endDate is same year as startDate, HOT 2
- March and August do not have 31 as options for DayPicker HOT 3
- Focus a dropdown dynamically
- Year drop-down not working on safari HOT 1
- DatePicker with combined functionality - dropdowns height on mobile?
- disable console log
- i18next support for months options
- remove console log from your components
- unable to install in react js
- How to align input in horizontal?
- Number.parseInt is undefined on IE11 HOT 1
- Is it possible to change month names or numeric? HOT 3
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 react-dropdown-date.