Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress leading zero in a date in sas

Status
Not open for further replies.

sap1958

Technical User
Oct 22, 2009
138
0
0
US
I am using sas 9.3. I have a date called pbd_date that displays mmddyy10. Lets say the date is 03/14/2013, how can I get sas to drop the leading zero and display it as 3/14/2013.
 
I haven't done this in a long time, however, it's worth looking at Picture Formats in the documentation. IT contains full instructions on how to create your own format. You should be able to construct a format for your date which does what you need.
If you have trouble, post back and I'll see if I can help further.
Chris.

Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top