how to convert character to date time in r code example Example: r convert date as timestamp as.numeric(as.POSIXct("20/10/2020", format="%d/%m/%Y"))