- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
can i convert date mm/dd/yyyy to character "mmddyyyy"
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: can i convert date mm/dd/yyyy to character "mmddyyyy"
thanks, This was exactly what i was looking for!!