ymd: Format a Date(time) object as ymd

Description Usage Arguments Value Author(s) Examples

View source: R/formats.R

Description

Format a Date(time) object as ymd

Usage

1

Arguments

pt

A POSIXt Datetime or a Date object

Value

A character object formatted as ‘YYYYMMDD’

Author(s)

Dirk Eddelbuettel

Examples

1
2
3
4
if (requireNamespace("anytime", quietly=TRUE)) {
   ymd(anytime::anytime("2016-09-01 10:11:12.123456"))
   ymd(anytime::anydate("2016-Sep-01"))
}

dang documentation built on Oct. 30, 2021, 1:08 a.m.

Related to ymd in dang...