0

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?

Ronak Shah
  • 377,200
  • 20
  • 156
  • 213
Epo Luusk
  • 37
  • 5

2 Answers2

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