I'm guessing there is already a way within the current shinyvalidate infrastructure (I'm new to using the package) for doing this, but it'd be nice if there was a baked-in sv_date() function for validating whether users have provided a valid date (using a specific format) to a dateInput.
The reason this is useful, among other reasons, is that users don't have to use the date picker with this input. Instead, they can use the backspace/delete keys to empty the input box and then type a date manually. Except they can also type gibberish to a large extent, in my experience! Shiny attempts to coerce what is entered to a date, but this can lead to nonsensical inputs...
I'm guessing there is already a way within the current shinyvalidate infrastructure (I'm new to using the package) for doing this, but it'd be nice if there was a baked-in sv_date() function for validating whether users have provided a valid date (using a specific format) to a dateInput.
The reason this is useful, among other reasons, is that users don't have to use the date picker with this input. Instead, they can use the backspace/delete keys to empty the input box and then type a date manually. Except they can also type gibberish to a large extent, in my experience! Shiny attempts to coerce what is entered to a date, but this can lead to nonsensical inputs...