react-ymd-date-select icon indicating copy to clipboard operation
react-ymd-date-select copied to clipboard

How to get Month Label String, when using useDateSelect hook

Open Moshappp opened this issue 2 years ago • 0 comments

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}

Moshappp avatar Feb 12 '23 21:02 Moshappp