Date MacrosYou can use date macros in log file paths, report output paths, e-mail subject and message, etc. The date macros are based on the current date with correction for custom time offset (if such option is set). Macro | Range | Description | | | Date Modification | | %Date% | | This is the only macro that produces no output. It is used to change the base date for all other macros. By default the current date is used but you can subtract or add several days to the date by using the macro formats %Date-n% or %Date+n%, where n is the number of added or subtracted days. | | | Numeric Macros | | These macros produce numeric output. You can either use simple format like %macro%, or format like %macro-n% or %macro+n%. n is a number added or subtracted from the macro value. | | %dd% | 01-31 | Day of the month | | %mm% | 01-12 | Month | | %yy% | 00-99 | Year | | %yyyy% | 1900-... | Year | | %dw% | 1-7 | Day of the week | | %dy% | 001-366 | Day of the year | | %wy% | 01-54 | Week of the year | | Name Macros | | %Month% | January-December | Month | | %month% | january-december | Month | | %MONTH% | JANUARY-DECEMBER | Month | | %Mon% | Jan-Dec | Month | | %mon% | jan-dec | Month | | %MON% | JAN-DEC | Month | | %DayOfWeek% | Sunday-Saturday | Day of the week | | %dayofweek% | sunday-saturday | Day of the week | | %DAYOFWEEK% | SUNDAY-SATURDAY | Day of the week | | %Dow% | Sun-Sat | Day of the week | | %dow% | sun-sat | Day of the week | | %DOW% | SUN-SAT | Day of the week |
Examples. The examples assume that the current date is February 25, 2003. | c:\Logs\%dd%%MON%%yyyy%.log | | c:\Logs\25FEB2003.log | | c:\Logs\%Date-10%%mm%%dd%%yy%.log | | c:\Logs\021503.log | | /%dd%%mm-1%.gz | | /2501.gz |
|