how to add separator automatically in DayPickerInput component of react-day-picker

陌路散爱 提交于 2019-12-11 19:28:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!