HI,
format(asd,"%d/%m/%Y")
#[1] "03/01/2012"
A.K.



----- Original Message -----
From: Ron Michael <ron_michae...@yahoo.com>
To: "r-help@r-project.org" <r-help@r-project.org>
Cc: 
Sent: Wednesday, December 26, 2012 1:31 PM
Subject: [R] Working with date

Hi,

Let say I have a date variable:

>  asd <- as.Date("2012-01-03")
> asd
[1] "2012-01-03"



Now, I want to express this date like 3/1/2012.

can somebody help me how to achieve that?

Thanks,

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


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

Reply via email to