The above example works perfectly
Here is what am doing
srdetails=read_xlsx(file.choose())
Am choosing the data from excel, the date stored in excel in GMT is like 2/8/19 10:54 PM
but when i do this , it shows as numbers as below
head(srdetails$Assigned On GMT)
[1] "43504.954282407409" "43504.956446759257" "43504.943159722221" "43504.880810185183"
[5] "43504.846585648149" "43504.837731481479 ===> So the problem is here itslef?
typeof(srdetails$Assigned On GMT)
[1] "character"
srdetails$Assigned On GMT<-as.POSIXct(srdetails$Assigned On GMT, tz="", format = "%H:%M:%S %d-%b-%Y")
srdetails$`Assigned On GMT
output as all N/As
class(srdetails$Assigned On GMT) shows
[1] "POSIXct" "POSIXt