Hi,

I noticed that as.Date() could not convert date string to date type if the
dates are very old. For example, if the date string is "1-Mar-50", then
as.Date() would convert this to "2050-03-01", NOT "1950-03-01". This seems
to be the behavior of as.Date() for dates older than 1969-1-1, and it is not
documented in the R as.Date() documentation. It seems very strange that R
would fail to convert old dates correctly. Does anyone know if this is the
correct behavior? If so, then which method should one use to convert old
dates?

Thanks,

Tom

P.S., I am using R 2.4.0 for Windows.

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch 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