Search code examples
javascripttwitter-bootstrapisobootstrap-datetimepicker

bootstrap-datetimepicker support of 24:00


I have a problem with https://github.com/Eonasdan/bootstrap-datetimepicker. I have input as time picker to allow the user to select start and end times of a day. I need to have an option to select between 00:00 to 24:00, but I can select only 23:59 as the last one.

If I'm correct it must be supported because of ISO8601 3.5.2 Time Of Day (24-hour).

Can someone help me? Thanks!


Solution

  • I don't think you should show the time as 24:00. Showing the time as 24:00 means its 00:00 next day. Why should we create such UI to confuse the user.

    Also I think we sit down to make the plugin show 24:00 for today we have to come up with some logic to distinguish it from 00:00 for tomorrow.