Skip to contents

Convert date type to YYYYMMDD string

Usage

YMD(x)

Arguments

x

A date object.

Value

A YYYYMMDD string

Examples

YMD(Sys.time())
#> [1] "20240202"