[R] Format Date with Time
jim holtman
jholtman at gmail.com
Mon Jul 16 19:18:41 CEST 2012
> 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
<lvogric at grahamcapital.com> wrote:
> How do I format "5/1/2012 8:00:00 PM" into a date?
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list