[R] Transform date - style

arun smartpink111 at yahoo.com
Thu Jun 14 22:25:28 CEST 2012


Hi,
Try this:
date1<-"X01.11.2010"
date2<-strftime(strptime(date1,"X%d.%m.%Y"),"%d.%b.%y")
 date2
[1] "01.Nov.10"

A.K.




----- Original Message -----
From: juliane0212 <stephanmi1 at web.de>
To: r-help at r-project.org
Cc: 
Sent: Thursday, June 14, 2012 10:09 AM
Subject: [R] Transform date - style

Hello,

is there any posibility to automatically transform this date notation  
"X01.11.2010"               into             "01.Nov.10"  ?

I did not see it before starting my simulation and now I have to deal with
it.
It is no problem for my calculations but for my graphical outputs I would
like to have  01.Nov.10 .

Thanks 

--
View this message in context: http://r.789695.n4.nabble.com/Transform-date-style-tp4633377.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.




More information about the R-help mailing list