For Linux, use the syntax "%-d" while for Windows, use the syntax "%#d".
A common requirement is to monitor a file (via FTM) with a date format ddmmyy, wherein the "dd" does not have a leading zero when the day of the month is between 1-9 (i.e. for March 2, 2016 = 2032016). What we normally use is the format, for example, <today%d%m%y>.txt, but the %d is expecting a leading zero if digit is between 1-9. See example below:
To remove the leading zero in the day of the month, you should use "%-d" for Linux and "%#d" for Windows.
Please sign in to leave a comment.