Re: r convert current date format from y-m-d to m/d/y

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: r convert current date format from y-m-d to m/d/y

arun kirshna
Hi,

Use  ?format

 format(d, "%m/%d/%Y")
#[1] "09/01/2014"

A.K.


On Monday, September 1, 2014 5:26 AM, Velappan Periasamy <[hidden email]> wrote:





d=Sys.Date()
"2014-09-01"

How to convert this "2014-09-01" to "09/01/2014" format?

(ie y-m-d to m/d/y format)

thanks

veepsirtt

______________________________________________
[hidden email] 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.