cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

can i convert date mm/dd/yyyy to character "mmddyyyy"

gow
gow
Level I

I need to concat the date information with the file name, however during concat the date variable changes to sas or hexadecimal format. Thanks Gowri

2 REPLIES 2
pmroz
Super User


Re: can i convert date mm/dd/yyyy to character "mmddyyyy"

Use the Format statement to convert to text:

a = today();

b = format(a, "mmddyyyy");

print(b);

Yields the result:

"05232012"

gow
gow
Level I


Re: can i convert date mm/dd/yyyy to character "mmddyyyy"

thanks, This was exactly what i was looking for!!