问题
how can i add the / -
separator in DayPickerInput during the user digit?
for example in it locale: 23091989
digit should be equal to 23/09/1989
回答1:
You can pass any formatter / parser to the formatDate
or parseDate
props:
http://react-day-picker.js.org/api/DayPickerInput#formatDate
来源:https://stackoverflow.com/questions/51559793/how-to-add-separator-automatically-in-daypickerinput-component-of-react-day-pick