Displaying 1 result from an estimated 1 matches for "26_05".
Did you mean:
2605
2024 Nov 27
3
Convert string to date time
I am reading a string that has the following form:
"2020-08-26_05:15:01"
I want to convert the string to a date-time variable. I tired:
x <- "2007-02-01_10:10:30"
x <- as.POSIXct(x,tz=Sys.timezone())
x
but this did not work; the time portion was ignored. I suspect the problem is the _ between the date and time, but I don't know how to...