I have two different dates in a data.frame in the following format as factors "dd-mm-yyyy HH:MM:SS" and "dd/m/yyyy hh:mm" and I'm trying to convert this into the same format using the strptime
:
strptime(x = as.character(data.frame$timestamp),format = "%d/%m/%Y %H:%M:%S")
but only "dd/m/yyyy hh:mm" is converting and the other timestamp results in NA
.