Obs | TIMESTAMP | WEEK | MONTH | YEAR | DAY | total_days from Jan 01 2013? |
1 | 2/11/2013 | 6 | 2 | 2013 | 11 | |
2 | 2/11/2013 | 6 | 2 | 2013 | 11 | |
3 | 2/12/2013 | 6 | 2 | 2013 | 12 | |
4 | 2/12/2013 | 6 | 2 | 2013 | 12 | |
5 | 2/12/2013 | 6 | 2 | 2013 | 12 | |
6 | 2/13/2013 | 6 | 2 | 2013 | 13 | |
7 | 2/13/2013 | 6 | 2 | 2013 | 13 | |
8 | 2/13/2013 | 6 | 2 | 2013 | 13 | |
9 | 2/13/2013 | 6 | 2 | 2013 | 13 | |
10 | 2/13/2013 | 6 | 2 | 2013 | 13 | |
11 | 2/14/2013 | 6 | 2 | 2013 | 14 | |
12 | 2/14/2013 | 6 | 2 | 2013 | 14 | |
13 | 2/14/2013 | 6 | 2 | 2013 | 14 | |
14 | 2/14/2013 | 6 | 2 | 2013 | 14 | |
15 | 2/15/2013 | 6 | 2 | 2013 | 15 | |
16 | 2/18/2013 | 7 | 2 | 2013 | 18 |
How to calculate the total days from first day of 2013 based on the timestamp? Thanks!
INTCK, it worked. Thanks!
INTCK, it worked. Thanks!
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.
Ready to level-up your skills? Choose your own adventure.