Convert chr to posxct in r

i have a datset that have tstart_time and end_time formatted as characyer
i need to combine it with other datset to do so i need to change the column type to posxct
my column format as 1/16/2019 8:04
i wrote this code (q1$end_time <- as.POSIXct(q1$end_time , format = "%m/%d/%y %H:%M:%S")
str(q1))and my data goes to be NA NA NA ...

should be "%m/%d/%Y %H:%M"

1 Like

Thanks!!! now it's working

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.