whitphx / react-ymd-date-select

Hooks and components for Y-M-D dropdowns with React
https://whitphx.github.io/react-ymd-date-select/
MIT License
45 stars 6 forks source link

How to get Month Label String, when using useDateSelect hook #89

Open Moshappp opened 1 year ago

Moshappp commented 1 year ago

Currently we are using the format of the Month Label to be 'MMM', but since the monthValue returned by hook contains only the value without the label which makes the component run into the problem of not showing the Label as the img below. Screen Shot 2023-02-12 at 11 04 01 PM

The hook should return the formatted Label, so Month should be passed as a value prop to the Select element as {value, label}