dang (version 0.0.10)

ymd: Format a Date(time) object as ymd

Description

Format a Date(time) object as ymd

Usage

ymd(pt)

Arguments

pt

A POSIXt Datetime or a Date object

Value

A character object formatted as ‘YYYYMMDD’

Examples

Run this code
# NOT RUN {
if (requireNamespace("anytime", quietly=TRUE)) {
   ymd(anytime::anytime("2016-09-01 10:11:12.123456"))
   ymd(anytime::anydate("2016-Sep-01"))
}
# }

Run the code above in your browser using DataCamp Workspace