Hi,
Please help me understand the difference between date () and today () function.
Are they always the same ?
Thanks !
My test gives me same results
data w;
date1=today();
output;
put date1= ;
date1=date();
output;
put date1= ;
format date1 date9.;
run;
date1=03JUL2018
date1=03JUL2018
yes, exactly. I get the same results.
But is there any scenario where they differs?
No idea. Both of us will have to wait for responses from somebody who knows about it.
They are alias of each other.
The same difference as between right Twix and a left Twix.
The left finger, as with the right finger are both Unixes, its only when join in one packet do they become a Twix. Being right handed, means right is always first and thus better.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.