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

Add ability to set today's date

Open nzjoel1234 opened this issue 9 years ago • 1 comments

I would like to be able to set today's date (i.e. the bold date in the calender)

This is because I am letting user select a datetime in a different timezone - I am able to do this by converting a date before display and then modifying the output of onChange. (Similar to this https://github.com/jquense/react-widgets/issues/510)

Looks like this should be a fairly trivial change (add a today prop to the calender and datetimepicker and use that instead of new Date(). @jquense can you see any problems with this?

nzjoel1234 avatar Apr 26 '17 00:04 nzjoel1234

No problem if you want to send a PR

jquense avatar Apr 26 '17 00:04 jquense