Time elements (At, On, Between) allow you to specify a date or time that a scenario element should occur. For more information, see Using Time Elements in Scenarios. In addition, you can also include the date and time as qualifying conditions within some other scenario elements. The Today’s condition element, described in the previous section, is one example. Other examples of elements that can include time as conditions are as follows:

People whose date of birth is before Jan 1, 1970 12:00 AM
People whose registration date is after July 1, 2004 12:00 AM

Note that, if you use “is” with a date and time expression, the value you specify must match exactly the value in the visitor’s profile. Consider the following example:

People whose last activity is Jan 1, 2004 12:00 AM

Here, only those visitors whose Last Activity property has an exact value of Jan 1, 2004 12:00:00 AM will be included in the scenario.

Using relative dates with the expression “is” requires caution for the same reason. Consider the following:

People whose registration date is 2 days ago

Here, only those visitors whose registration date (including its millisecond value) exactly matches the date and time 48 hours ago will be included in the scenario. A better way to specify this relative date expression is as follows:

People whose registration date is after 2 days ago and before 1 days ago

It may be helpful to use the People and Organizations > Users window in the ATG Control Center to check that your date and time conditions will produce the results you expect. Use the date and time values you specified in the scenario as the List criteria at the top of the Users window; the profiles that are displayed when you click the List button, correspond to the registered visitors who will be included in this scenario. If no profiles appear, you may have specified the values incorrectly. Change the List criteria to Items of Type User (Any Item) and examine the way the date and time are specified in the property you want to use in the scenario.

 
loading table of contents...