Used lubridate package to solve datetime parsing issue