I have a string that holds a filename template. (taken from a xml file value made by another program)
Inside that string there is %m or %mm style templates.
For example:
XXXX-FM-DA-%m-%d-%yyyy-OPX2.txt
or
XXXX-AM-DA-%d.%m.%yy-OPX2.txt
How could I output a string, replacing the custom date values (with today's values) but keep the rest of the text?
XXXX-FM-DA-11-21-2021-OPX2.txt
Thank you for any suggestions.
Greg
Inside that string there is %m or %mm style templates.
For example:
XXXX-FM-DA-%m-%d-%yyyy-OPX2.txt
or
XXXX-AM-DA-%d.%m.%yy-OPX2.txt
How could I output a string, replacing the custom date values (with today's values) but keep the rest of the text?
XXXX-FM-DA-11-21-2021-OPX2.txt
Thank you for any suggestions.
Greg