My goal is to create a folder with the date formatted in the way I like.
I found the specific format I want but it works only with the display command.
This code
Produces the result I want
(which is the 20th of November 2018)
But I was not able to store this string of digits as a scalar/tempvar/local and use it anywhere else
Scalar -
or local macro -
Both produce the same error
I found the specific format I want but it works only with the display command.
This code
Code:
display %td_CCYYNNDD date(c(current_date), "DMY")
20181120
But I was not able to store this string of digits as a scalar/tempvar/local and use it anywhere else
Scalar -
Code:
scalar a = %td_CCYYNNDD date(c(current_date), "DMY")
Code:
local D = %td_CCYYNNDD date(c(current_date), "DMY")
%td_CCYYNNDD invalid name
Comment