Re: [R] Format Date with Time

2012-07-16 Thread jim holtman
> 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 wrote: > How do I format "5/1/2012 8:00:00 PM" into a date? > > > [[alternative HTML version deleted]] > > ___

Re: [R] Format Date with Time

2012-07-16 Thread Hasan Diwan
Ms Vogric, as.POSIXct should be able to help there... On 16 July 2012 06:40, Jessica Streicher wrote: > ?Date > ?POSIXct > > and here you can find the formatting symbols: > http://stat.ethz.ch/R-manual/R-patched/library/base/html/strptime.html > > > On 16.07.2012, at 15:26, Lauren Vogric wrote:

Re: [R] Format Date with Time

2012-07-16 Thread Jessica Streicher
?Date ?POSIXct and here you can find the formatting symbols: http://stat.ethz.ch/R-manual/R-patched/library/base/html/strptime.html On 16.07.2012, at 15:26, Lauren Vogric wrote: > How do I format "5/1/2012 8:00:00 PM" into a date? > > > [[alternative HTML version deleted]] > >

[R] Format Date with Time

2012-07-16 Thread Lauren Vogric
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.ht