hernansartorio / react-nice-dates

A responsive, touch-friendly, and modular date picker library for React.
https://reactnicedates.hernansartorio.com
MIT License
1.1k stars 82 forks source link

add year and month picker support #17

Open mehdiraized opened 4 years ago

mehdiraized commented 4 years ago

we need pick birthday in profile page not this package not good user experience for select years and month

rnnyrk commented 4 years ago

Agree on this one, really need to be able to select a year

tusharshuklaa commented 4 years ago

Is there any work-around for having year in the calendar?

tusharshuklaa commented 4 years ago

I tried to understand why I can't see YEAR along with Month in Calendar Navigation and came across this code. <span className='nice-dates-navigation_current'> {format(month, getYear(month) === getYear(new Date()) ? 'MMMM' : 'MMMM yyyy', { locale })} </span> I understand that this is a nice feature but there should be a toggle whether the user wants this behaviour or not because this is not an obvious default behaviour.

hernansartorio commented 4 years ago

I understand that this is a nice feature but there should be a toggle whether the user wants this behaviour or not because this is not an obvious default behaviour.

@tusharshuklaa that makes sense, I thought of adding a monthFormat prop that would allow overriding that, happy to accept a PR for it!

As for original issue described here, for now it's possible to change years by editing/typing the text on the input.

korengrip commented 3 years ago

Anyone working on it?

Aryaman73 commented 3 years ago

Does anyone know of a react date-picker library which does support a month picker? 😞

kbanach commented 2 years ago

I understand that this is a nice feature but there should be a toggle whether the user wants this behaviour or not because this is not an obvious default behaviour.

@tusharshuklaa that makes sense, I thought of adding a monthFormat prop that would allow overriding that, happy to accept a PR for it!

As for original issue described here, for now it's possible to change years by editing/typing the text on the input.

I've added the monthFormat option and later maybe I could add some way to have a year dropdown, but I'm not promising anything here 😉