[R] read the date format

Rui Barradas ruipbarradas at sapo.pt
Tue Jul 3 17:01:25 CEST 2012


Hello,

Try, with 'x' your date(s),

as.Date(x, format="%A, %B %d,%Y")
strptime(x, format="%A, %B %d,%Y")

Note: this is in the help page for ?strptime

Hope this helps,

Rui Barradas

Em 03-07-2012 07:04, arunkumar1111 escreveu:
> hi
>
> I have a data like   thursday, November 20,2012.   I'm not able to convert
> into data format in R
>
> Can anyone please help
>
> -----
> Thanks in Advance
>          Arun
> --
> View this message in context: http://r.789695.n4.nabble.com/read-the-date-format-tp4635245.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.
>



More information about the R-help mailing list