Re: [R] Converting string to date

2013-08-04 Thread arun
00 EST" as.Date(gsub("EDT|EST","",MyString1), format="%a %b %d %H:%M:%S %Y") #[1] "2013-09-01" "2013-12-01" A.K. - Original Message ----- From: Ron Michael To: "r-help@r-project.org" Cc: Sent: Sunday, August 4, 2013 11:34 AM

Re: [R] Converting string to date

2013-08-04 Thread Jeff Newmiller
On Sun, 4 Aug 2013, Ron Michael wrote: Hi,   I want to convert following string to a Date format (mm/dd/):   MyString <- c("Sun Sep 01 00:00:00 EDT 2013", "Sun Dec 01 00:00:00 EST 2013")   Can somebody point me if it is possible to do that? I think the answer to "is it possible" is a quali

[R] Converting string to date

2013-08-04 Thread Ron Michael
Hi,   I want to convert following string to a Date format (mm/dd/):   MyString <- c("Sun Sep 01 00:00:00 EDT 2013", "Sun Dec 01 00:00:00 EST 2013")   Can somebody point me if it is possible to do that?   Thank you. __ R-help@r-project.org mailing lis