[R] r convert current date format from y-m-d to m/d/y

arun smartpink111 at yahoo.com
Mon Sep 1 13:00:20 CEST 2014


Hi,

Use  ?format

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

A.K.


On Monday, September 1, 2014 5:26 AM, Velappan Periasamy <veepsirtt at gmail.com> 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



More information about the R-help mailing list