> as.POSIXct("5/1/2012 8:00:00 PM", format = "%m/%d/%Y %I:%M:%S %p") [1] "2012-05-01 20:00:00 EDT"
On Mon, Jul 16, 2012 at 9:26 AM, Lauren Vogric <lvog...@grahamcapital.com> wrote: > How do I format "5/1/2012 8:00:00 PM" into a date? > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. ______________________________________________ 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.