isDates <- function(mydate, date.format = "%Y-%m-%d") {
tryCatch(!is.na(as.Date(mydate, date.format)),
error = function(err) {FALSE})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.