rstudio / shiny

Easy interactive web applications with R
https://shiny.posit.co/
Other
5.35k stars 1.87k forks source link

Support date-time input #897

Open aronatkins opened 9 years ago

aronatkins commented 9 years ago

The dateInput control is quite nice for choosing single date values but does not support more granular time selection (think Sys.Date() vs. Sys.time()).

I am aware that there are a number of examples which pull in date-time pickers into a Shiny application, but it would be great if Shiny could provide this without independent augmentation.

CinchBlue commented 9 years ago

I think it would be better to implement the time feature separately. Date/time manipulations are kind of complex with all the formatting, especially if you get into ordering, right?

aronatkins commented 9 years ago

@VermillionAzure My suggestion is that Shiny implement something like the Bootstrap date-time pickers at https://eonasdan.github.io/bootstrap-datetimepicker/ or https://tarruda.github.io/bootstrap-datetimepicker/

This could be done as a separate package, but feels close enough to the other input controls that are already part of Shiny itself.

burgerga commented 8 years ago

@aronatkins @VermillionAzure I just wrote the shinyTime package which adds a timeInput control (just time, not datetime). Please let me know what you think! (Wait for the 0.2.0 release to hit CRAN though (should be there in a day), there is a small usability bug in 0.1.0 with keyboard input)

harryprince commented 7 years ago

shinyTime::timeInput looks so good,however,hope to integrate into a more user-friendly UI

shizidushu commented 5 years ago

It is better to have a Date Range Picker With Times input. Something like http://www.daterangepicker.com/#example2

holgerbrandl commented 4 years ago

airDatetimePicker from the great https://github.com/dreamRs/shinyWidgets package provides a date-time range picker but still has some minor flaws as documented in https://github.com/dreamRs/shinyWidgets/issues/299