ymd: Format a Date(time) object as ymd

View source: R/formats.R

ymdR Documentation

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’

Author(s)

Dirk Eddelbuettel

Examples

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 May 29, 2024, 2:53 a.m.

Related to ymd in dang...