lastDateMonth: lastDateMonth

View source: R/utilsDate.R

lastDateMonthR Documentation

lastDateMonth

Description

Takes monthly dates in character string such as "dec2022" and returns the date of the last day of the month in date format

Usage

lastDateMonth(month, lc_time = "C")

Arguments

month

character string, abbreviated month+year (eg. dec2022)

lc_time

character string, input of the Sys.setlocale("LC_TIME", lc_time), required if the system local language for the time is not the same as the month argument (e.g., if Sys.getlocale("LC_TIME") is "French_France.utf8", but month = "dec2022"). Default value being "C" for English format.

Value

The last date in that month in date format

Author(s)

Jenny Howard j.howard@epiconcept.fr

Examples

lastDateMonth("dec2022")


Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.