Hi,
When importing my excel sheet, the date/time conversion is not correct. Only method that worked was converting it into CSV file but then I would have to format the rest of the columns.
I also tried "41000" method of -21916 but that didn't work. Below is a screenshot of the excel and the values it looks like after importing.
Someone please help import the correct dates, Thanks.
"but that didn't work" is not a useful description of what went wrong. SAS converts some date variables when it recognizes an Excel date format, but it misses some. You can either change the format in Excel so that it is recognized by SAS as a date format, or do your own convversion in SAS after importing.
Please show the SAS code you are using.
Are those supposed to be the same values?
The standard correction methods don't work and I don't understand why....
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.