BookmarkSubscribeRSS Feed
Smitha9
Fluorite | Level 6

I have the dataset:

20SEP22:10:00:00

21SEP22:13:30:00

19SEP22:13:30:00

 

I want the dataset with following format:

09/20/2022

09/21/2022

09/19/2022

 

thank in advance

1 REPLY 1
PaigeMiller
Diamond | Level 26

Use format DTDATE to produce dates like 20SEP2022

 

If you need exactly 09/20/2022 then you need to use the DATEPART function on your date/time variable and then format ddmmyy10.

--
Paige Miller

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

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