I want to convert numeric date format to date. I.E. I have value 44109, but want to convert it to 2020-10-06. How is it possible?
Asked
Active
Viewed 166 times
0
-
See `help("as.Date")`, in particular the *Examples* there. – Roland Oct 07 '20 at 08:41
2 Answers
0
Try something like below
> as.Date(44109,origin = "1900-01-01")
[1] "2020-10-07"

ThomasIsCoding
- 96,636
- 9
- 24
- 81
0
this works as well
x <- as.POSIXct(44109 * (60*60*24), origin="1899-12-30", tz="GMT")
"2020-10-05 GMT"

D.J
- 1,180
- 1
- 8
- 17