BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am trying to build a simple conversion table so that I can easily convert my data into date, working day, period, month, year, etc...whenever I want.

It is simply the above headings with their associated values, created in Excel. The plan was to turn it into a SAS dataset, however it's not working.

When I open my table in EG 'month&year' (mmmyy) and 'date' (ddmmyy) are being converted into datetimes (I understand why this happens). I have used the DATEPART function to split the numbers but it is not producing the correct results, i.e. 1st Sep 09 is giving me a date from 1949!!!

Any ideas?
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
Check your YEARCUTOFF option in SAS. If it is 1900, then change to 2000. If it is 2000, then the problem is in your Excel setup.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 939 views
  • 0 likes
  • 2 in conversation