Skip to content
Prev 293309 / 398502 Next

date and time conversion

Hello,


mpostje wrote
Try

x <- "1981-01-02T08:00"
x.new <- sub("T", " ", x)
as.POSIXct(x.new)

Hope this helps,

Rui Barradas


--
View this message in context: http://r.789695.n4.nabble.com/date-and-time-conversion-tp4602786p4603288.html
Sent from the R help mailing list archive at Nabble.com.