react-md
react-md copied to clipboard
[DatePicker] - Add a friendlier formatter for DatePicker
Currently, you need to use the Intl.DateTimeFormat for formatting dates in the DatePicker. This is a little clunky, and passing a custom function into the DateTimeFormat prop doesn't quite work.
It would be good if we could more easily and reliably pass in a formatter prop function (probably that passes in a Date) to the DatePicker to achieve desired results.
Just a reminder to when someone (or me) picks this up.. The main problem with a custom formatted is needing the ability to extract the year, weekday, and date from the time. See DatePickerHeader and CalendarHeader.