BookmarkSubscribeRSS Feed
BrahmanandaRao
Lapis Lazuli | Level 10

Hi Experts,

What is difference between worddate and nldatel formates 

Can you  explain with examples above formats

1 REPLY 1
ballardw
Super User

Obvious difference is national language rules for displaying dates.

Second  is how  a particular format will display a given value with a short length.

 

data _null_;
   d = today();
   put d= worddate10.;
   put d= worddate15.;
   put d= worddate20.;
   put d= nldate10.;
   put d= nldate15.;
run;

On my system today the log shows:

d=March
d=Mar 23, 2024
d=March 23, 2024
d=03/23/2024
d=March 23, 2024

In my default US national language support note that the Worddate examples (the first 3) pretty much start the same just adding text in different places as more character positions are specified.

NLDATE chose a very different display for the short version.

No idea what any specific other language might prefer.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 475 views
  • 2 likes
  • 2 in conversation