asDate: convert date DDmmmYYYY to Date

asDateR Documentation

convert date DDmmmYYYY to Date

Description

convert date DDmmmYYYY to Date

Usage

asDate(getDateValues, dateFormat = "%d%b%Y", ...)

Arguments

getDateValues

character date, in format recognized by dateFormat

dateFormat

character string representing the recognized date format, by default "DDmmmYYYY", which recognizes "23aug2007".

...

additional parameters are ignored.

Details

This function converts a text date string to Date object, mainly to allow date-related math operations, for example difftime.

Value

Date object

See Also

Other jam date functions: dateToDaysOld(), getDate()

Examples

asDate(getDate());


jmw86069/jamba documentation built on March 26, 2024, 5:26 a.m.