Skip to contents

Is it a verbose English date?

Usage

is_long_date(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for weekday/month-name dates such as Friday, June 16, 1967 or Mar 15 2016 10:53:29. Requires a weekday prefix or a year, to avoid overlapping is_month_day().

Examples

is_long_date(c("Friday, June 16, 1967", "Mar 15 2016 10:53:29", NA))
#> [1] TRUE TRUE   NA