Learn R Programming

dataRetrieval (version 1.4.0)

dateFormatCheck: Check date format

Description

Checks to see if format is YYYY-MM-DD. Also performs a few other date checks.

Usage

dateFormatCheck(date)

Arguments

date

string

Value

condition logical if TRUE,

Examples

Run this code
# NOT RUN {
date <- '1985-01-01'
dateFormatCheck(date)
dateWrong <- '1999/1/7'
dateFormatCheck(dateWrong)
# }

Run the code above in your browser using DataLab