I have this variable:
strfmt Now1 "%02d%02d%02d" Month Day Year
I want the variable to display 030504 but is is coming in as 03052004. any ideas?
thanks.
The %02d only specifies a minimum width for the variable, but the specified variable will never be truncated when placed in the field. You can use this command to delete the first two characters of the year from your generated string:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.