37
Is there any easy way for getting start date and end date of previous month from the current date in R?
I have only the current date. From it, i want to get the previous month, start date of previous month, end date of previous month.
currentDate<-Sys.Date() #return today's date as "2012-11-07"
I want the previous month start date as 2012-10-01 and end date as 2012-10-31 from today's date.