MessageMaxDate

Set this parameter to retrieve messages that were modified before the specified date.

Specify the date using one of the following formats:

  • A date in the format YYYY/MM/DD HH:NN:SS, for example 2018/05/29 00:00:00, in UTC time.
  • A relative date, starting with the character ‘-’ followed by a time duration. The time duration is relative to the time when the task begins, which results in a rolling limit. Relative dates support the units year(s), month(s), week(s), day(s), hour(s), minute(s), and second(s). You can shorten the value by abbreviating the units to their first letter (months abbreviates to m, minutes to n). For example:

       -3months 1week
       -3m 1w

    A single value without a unit is read in seconds, so the following are equivalent:

       -1day
       -86400s
       -86400

    Positive values are accepted if they begin with the character '+', but be aware that positive values represent times in the future.

Type: Date or relative date
Default:  
Required: No
Configuration Section: TaskName or FetchTasks
Example:

The following example retrieves messages that are more than a day but less than a week old:

MessageMaxDate=-1day
MessageMinDate=-1week

See Also: MessageMinDate