In this tutorial I’ll walk through how to create dateInput and dateRangeInput widgets in R Shiny, how to extract the selected values from those widgets, and how to update the widgets after they’ve already been created. I’ll also showcase a few other options from different packages that include time widgets.
00:00 Introduction
00:33 Adding date widgets
02:24 Customisation
05:02 Extract selected values
08:44 Update from another source
13:20 Alternative date and time options
16:35 Outro
🔗 Code: https://github.com/ashleighlatter/shiny-basics/blob/main/widgets/dates.R
🔗 Air Date Picker: https://dreamrs.github.io/shinyWidgets/reference/airDatepicker.html
🔗 Shiny Time: https://burgerga.github.io/shinyTime/reference/timeInput.html
🔗 Shiny Date Time Pickers: https://cran.r-project.org/web/packages/shinyDatetimePickers/shinyDatetimePickers.pdf