hsStringToDate: Convert String to Date

View source: R/convert.R

hsStringToDateR Documentation

Convert String to Date

Description

Convert date string to string and stop on failure

Usage

hsStringToDate(strDate, dateFormat)

Arguments

strDate

(vector of) string(s) representing date(s)

dateFormat

date format specifier describing the format in which dates are represented in the csv file. Use placeholders , "%d" (day), "%m" (month), "%y" (2-digit year), "%Y" (4-digit year) to describe the date format. "%d.%m.%Y", "%d/%m/%y", "%Y-%m-%d" are examples for valid format specifiers.

Value

(vector of) Date object(s)


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.