Hi there,
Need advice on why the dates showing incorrect when exported to csv. The data looks absolutely fine in SAS but some random lines would show incorrect dates "mm/dd/yyyy" where it should be "dd/mm/yyyy". Most of the records still have correct date. It is really annoying. Hope some one can shed me some light here 🙂
in excel, the first line looks normal as 02/01/2018, but it is wrong, in SAS the correct date is 01 Feb 2018.
When this issue occurred, you can always found there are two sets of data there:
one is selectable by year/month/date, the other one can only be selected by the date itself.
Hi Reeza,
Thanks heaps for your help. You have pointed me out to the right direction.! How awesome is that... could not imagine if I don't have an answer to deal with the issue (was really annoying).
Now I have replaced all dates format from ddmmyy10. to date9. in SAS. Looks like the exported data are perfectly fine now in excel 🙂
Further more, in case any one may be interested, it is similar when using format mmyy5.(or mmyy7.)
I have found using format monyy7. is way more better if there is need to export to CSV/EXCEL.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.