react-nice-dates icon indicating copy to clipboard operation
react-nice-dates copied to clipboard

add year and month picker support

Open mehdiraized opened this issue 5 years ago • 7 comments

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

mehdiraized avatar Feb 07 '20 12:02 mehdiraized

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

rnnyrk avatar Mar 23 '20 10:03 rnnyrk

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

tusharshuklaa avatar May 27 '20 13:05 tusharshuklaa

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.

tusharshuklaa avatar May 27 '20 13:05 tusharshuklaa

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.

hernansartorio avatar May 27 '20 23:05 hernansartorio

Anyone working on it?

korengrip avatar Jun 06 '21 07:06 korengrip

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

Aryaman73 avatar Jun 21 '21 00:06 Aryaman73

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 😉

kbanach avatar Nov 11 '21 18:11 kbanach