Use dates in scheduled jobs export file name

Each time an export file is written by a scheduled job, the previous file is overwitten. If the previous file should be kept you can specify date and time to be included in the file path.

Step-by-step guide

  1. Edit the scheduled job which exports the file
  2. Change Path to Export File to include a date pattern (see below) surrounded by %, e.g. file%yyyyMMdd%.xls which will create the file "file20141231.xls" if today's date is Dec 31, 2014.
  3. Save job. Next export will now write a file including the date and/or time


Date pattern letters

LetterDate or Time ComponentPresentationExamples
GEra designatorTextAD
yYearYear199696
MMonth in yearMonthJulyJul07
wWeek in yearNumber27
WWeek in monthNumber2
DDay in yearNumber189
dDay in monthNumber10
FDay of week in monthNumber2
EDay in weekTextTuesdayTue
aAm/pm markerTextPM
HHour in day (0-23)Number0
kHour in day (1-24)Number24
KHour in am/pm (0-11)Number0
hHour in am/pm (1-12)Number12
mMinute in hourNumber30
sSecond in minuteNumber55
SMillisecondNumber978
zTime zoneGeneral time zonePacific Standard TimePSTGMT-08:00
ZTime zoneRFC 822 time zone-0800

Date patterns can also be used for folder names in the Export File path.