###################
# IsDate function #
###################
IsDate <- function(mydate, date.format = "%d-%m-%y") {
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.