## date as character string
charvec <- "2006-04-16"
myFinCenter <- getRmetricsOptions("myFinCenter")
## What date has the last day in a month for a given date?
timeLastDayInMonth(charvec, format = "%Y-%m-%d",
zone = myFinCenter, FinCenter = myFinCenter)
timeLastDayInMonth(charvec)
timeLastDayInMonth(charvec, FinCenter = "Zurich")
## What date has the first day in a month for a given date?
timeFirstDayInMonth(charvec)
## What date has the last day in a quarter for a given date?
timeLastDayInQuarter(charvec)
## What date has the first day in a quarter for a given date?
timeFirstDayInQuarter(charvec)
Run the code above in your browser using DataLab