dateFormatCheck: Check date format

View source: R/dateFormatCheck.r

dateFormatCheckR Documentation

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

character

Value

condition logical TRUE or FALSE if checks passed or failed

Examples

date <- '1985-01-01'
dateFormatCheck(date)
dateWrong <- '1999/1/7'
dateFormatCheck(dateWrong)

USGS-R/EGRET documentation built on Nov. 20, 2024, 7:45 p.m.