Skip to contents

Convert date type to YYYYMMDDHHmm string

Usage

YMDhm(x)

Arguments

x

A date object.

Value

A YYYYMMDDHHmm string

Examples

YMDhm(Sys.time())
#> [1] "202402021552"