Here is what the documentation says about getDateStr:
A function to override how to format the date into a String for display, receives a Date instance
Can someone explain me the following behavior?
This works:
<DatePicker
...
format="LL"
/>
This doesn't work (isn't getDateStr supposed to replace format?):
<DatePicker
...
getDateStr={rawDate => moment(rawDate).format('LL')}
/>
This works (and I can save rawDate for something else):
<DatePicker
...
format="LL"
getDateStr={rawDate => moment(rawDate).format('LL')}
/>