Skip to content
Prev 68644 / 398506 Next

date format

You haven't even begun to tell us how you are doing this.  R does not 
itself convert dates to numbers, to wit:
[1] "2003-12-16"

Here's one way:

x <- as.Date("16/12/03", "%d/%m/%y")
xx <- as.POSIXlt(x)
xx$year <- xx$year-100
as.Date(xx)
On Wed, 27 Apr 2005, alessandro carletti wrote:

            
Not to say wrong.