convert date DDmmmYYYY to Date
asDate(getDateValues, dateFormat = "%d%b%Y", ...)
getDateValues
: character
date, in format recognized by dateFormatdateFormat
: character
string representing the recognized date format, by default "DDmmmYYYY"
, which recognizes "23aug2007"
....
: additional parameters are ignored.Date object
This function converts a text date string to Date object, mainly to allow date-related math operations, for example difftime
.
asDate(getDate());
Other jam date functions: dateToDaysOld()
, getDate()