pushtell/react-bootstrap-date-picker

turn off time?

Opened this issue · 0 comments

Hello, I went here because I couldn't see this in the documentation, but when you select a date it also includes the time, i.e., 2016-05-19T12:00:00.000Z, but I only want 2016-05-19. I saw that onChange callback can accept a second argument which is the formattedValue that looks like 2016-05-19. Is it possible to get what was given on the dateFormat props as the value when the user selected a date? so if the dateFormat was something like MM-DD-YYYY H:i:s we get 12-05-2017 00:00:00 or if the dateFormat was YYYY.MM.DD we get 12.05.2017 as the value.