is_date_format: Check Date Format

View source: R/utils.R

is_date_formatR Documentation

Check Date Format

Description

Checks if the data format x complies with format.

Usage

is_date_format(x, format = "%Y-%m-%d")

Arguments

x

object of class character or Date

format

required date format (see strptime)

Value

TRUE if x complies with format, and FALSE otherwise.

Examples

is_date_format("2019-05-14", "%Y-%m-%d")

litteR documentation built on Aug. 27, 2022, 1:05 a.m.