Back to Geneos FAQ

NetProbe - How to remove the leading zero in the day of the month date format

\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 (such as 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 the following example:

FTM date format

To remove the leading zero in the day of the month, you should use %-d for Linux and %#d for Windows.

Linux date file path

Linux date format setup resulting dataview

Windows date file path

Windows date format setup resulting dataview

["Geneos"] ["Geneos > Netprobe"] ["FAQ"]

Was this topic helpful?