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
  • 355,584
  • 18
  • 123
  • 178
Epo Luusk
  • 37
  • 5

2 Answers2

0

Try something like below

> as.Date(44109,origin = "1900-01-01")
[1] "2020-10-07"
ThomasIsCoding
  • 80,151
  • 7
  • 17
  • 65
0

this works as well

x <-  as.POSIXct(44109 * (60*60*24), origin="1899-12-30", tz="GMT")

"2020-10-05 GMT"
D.J
  • 737
  • 1
  • 5
  • 12