Format a date string as " from a SQL database to a format compatible with a HTML date input value.
castDateString(x)
x
A string.
A string, formatted YYYY-MM-DD.
castDateString(Sys.time())