react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Is there any way to enter date as 12022021(MMDDYYYY) and still select date, if not, can that be added ?

Open ATZTests opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like My requirement is even though i enter the date with out any separators, it should select the date. For example, for December 10th 2021 all the below inputs should select that date 12/10/2021 - already working 12-10-2021 - already working 12102021 - Not working

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

ATZTests avatar Apr 11 '22 14:04 ATZTests

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 02 '22 06:11 stale[bot]

@ATZTests the way to handle this is to mask the input with a customInput. I found comigo-tech-react-input-mask to be the best solution for my use case:

import InputMask from "comigo-tech-react-input-mask";

<DatePicker
  customInput={<InputMask mask={inputMask} />}
  ...
/>

DaveSauce avatar Dec 08 '22 22:12 DaveSauce

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jun 19 '24 01:06 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar May 07 '25 02:05 github-actions[bot]