Skip to content

Converting strings to date

3 messages · João Mendes Moreira, Brian Ripley, Roger D. Peng

#
You want as.Date, not strptime that gives you a *list*.

Please do read the help pages before posting, as the the posting guide
asks you to.
On Mon, 8 Nov 2004, Jo??o Mendes Moreira wrote:

            

  
    
#
You need to be more specific when you say "it works" =)  strptime() 
returns a POSIXlt object whose printed representation appears to be a 
string (but it is a list).  What you want, I think, is either 
as.POSIXct() or as.Date().  See ?DateTimeClasses.

-roger
Jo??o Mendes Moreira wrote: