I'm frequently having to move data back and forth from SAS to Stata or Stata to SAS. I know how to convert SAS Date/Time to Stata, but I cannot find a way to convert Stata Date/Time back to SAS.
Is there a known calculation to do this?
The variables come into SAS formatted as datetime18., but the time is incorrect. I used StatTransfer v11 to do this, but I also tried exporting from Stata and it still did not work.
My thought is that I will need to break this out into separate date and time variables and recalculate time and then put them back together.
Any ideas if this will work or if there is an easier option?
Thank in advance!