title: Converting long numbers to date in R
body: <p>I have an excel file which I am trying to read in R using read_excel function. The dates field in my data are pivoted up i.e. they are as columns.  See screenshot below</p>
  
  <p><a href="https://i.stack.imgur.com/hgg1R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hgg1R.png" alt="enter image description here"></a></p>
  
  <p>The problem is when R reads the data file it converts the date fields columns to something like below.</p>
  
  <p><a href="https://i.stack.imgur.com/f3jkH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f3jkH.png" alt="enter image description here"></a></p>
  
  <p>Now, I have extracted the dates in a vector vDates and trying to convert them back to dates using below code , but it gives me error. <a href="https://i.stack.imgur.com/JJe03.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JJe03.png" alt="enter image description here"></a></p>
  
  <p>Please let me know what is it that I am missing here!.</p>
  
  <p>Appreciate the help.</p>