How can I have year input only?
I have this date input below which gives me dates from 2014-10-01,
dateInput(
inputId = "date_from",
label = "Select time period:",
value = "2014-10-01",
format = "dd-mm-yyyy"
)
But I don't need the months and dates, only years that I need,
dateInput(
inputId = "year_from",
label = "Select time period:",
value = "2014",
format = "yyyy"
)
It does not work obviously as I still see the months and dates being displayed.
Any ideas?