[R-SIG-Mac]Date conversion problems

Thomas Lumley tlumley@u.washington.edu
Mon, 3 Feb 2003 07:14:16 -0800 (PST)


On Sun, 2 Feb 2003, John Carew wrote:

> Hello,
> I have a data set with dates stored as a factor with levels coded as, for
> example  "01/03/1996"
>
> I tried the following:
>
> onset <- strptime(as.character(cf$dx.dt), format="%m%d%Y")
>

If the dates look like "01/03/1996" then the format is "%m/%d/%Y"

	-thomas