Skip to contents

Convert date type to YYYYMMDDHH string

Usage

YMDh(x)

Arguments

x

A date object.

Value

A YYYYMMDDHH string

Examples

YMDh(Sys.time())
#> [1] "2024020215"