On Thu, Sep 27, 2012 at 1:21 PM, Rantony <antony.akk...@ge.com> wrote: > Hi, > > Can anyone please help to get "StartDay" and "End-day of a particular month" > with time ? > > For eg:- Input wil be "2012-09-27" > > i need to get output as given below > > StartDt <- "2012-09-01 00:00:01" > EndDt <- "2012-09-30 23:59:59" > > - Thanks in advance
Look at xts::lastof(). Cheers, Michael ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.