For the r script below 

>datestr <- "01/01/2004"
>as.POSIXct(as.Date(datestr, "%d/%m/%Y"))
I get the following output
 "2003-12-31 18:00:00 Central Standard Time"

Why is the date a day before. I guess its something to do with the time, but is there a way to get it to return 2004-01-01 instead?

Thanks in advance...
-Sandeep

	[[alternative HTML version deleted]]


