DATA Step, Macro, Functions and more

Time and Word Date Assistance

Accepted Solution Solved
Reply
Regular Contributor
Posts: 178
Accepted Solution

Time and Word Date Assistance

data _NULL_;

call symput ( 'Time', put(time(),time8.));/*13:00:00*/

 

call symput ( 'Date1', put(today(),worddate12.));/*Nov 21, 2017*/

run;

I want to display time in this format 1:00 PM instead of 13:00:00
I also want to display the day of the date in a word format for the date  (ie Tuesday)


Accepted Solutions
Solution
‎11-21-2017 03:13 PM
Respected Advisor
Posts: 2,658

Re: Time and Word Date Assistance

Tuesday --> WEEKDAY is the proper format

 

1:00 pm --> use the TIMEAMPM format

--
Paige Miller

View solution in original post


All Replies
Solution
‎11-21-2017 03:13 PM
Respected Advisor
Posts: 2,658

Re: Time and Word Date Assistance

Tuesday --> WEEKDAY is the proper format

 

1:00 pm --> use the TIMEAMPM format

--
Paige Miller
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 80 views
  • 1 like
  • 2 in conversation