Current Date Condition

The Current Date condition allows you to use the date to determine whether the user is allowed access to a resource.

Specify the following details:

Comparison: Specify how the current date is compared to the data in the Value field. Select one of the following types:

  • Comparison: Date: Specifies that you want the values compared as dates. Select one of the following date operators:

    • Equals: Requires that the current date must equal the specified value.

    • Greater Than: Requires that the current date be after the specified value.

    • Greater Than or Equal to: Requires that the current date be after or equal to the specified value.

    • Less Than: Requires that the current date be before the specified value.

    • Less Than or Equal to: Requires that the current date be before or equal to the specified value.

  • Comparison: Regular Expression: Matches: Specifies that you want the values compared as regular expressions. Be aware the regular expression matching uses the entire date of the server in its matching. Therefore if the value you are matching is 8, the 8 can produce a match for the year (2008), the month (8), and the day (8, 18, 28).

    If you select this option, you must also specify a mode. Select one or more of the following:

    • Canonical Equivalence
    • Case Insensitive
    • Comments
    • Dot All
    • Multi-Line
    • Unicode
    • Unix Lines

    For regular expression syntax information, see the Javadoc for java.util.regex.Pattern.

Date Format: If you selected a date comparison, specify the format of Value. Select one of the following formats:

  • D/M/Y = 1/Jul/2009 or 1/7/2009

  • D-M-Y = 1-Jul-2009 or 1-7-2009

  • D.M.Y = 1.Jul.2009 or 1.7.2009

  • M/D/Y = Jul/1/2009 or 7/1/2009

  • M-D-Y = Jul-1-2009 or 7-1-2009

  • M.D.Y = Jul.1.2009 or 7.1.2009

  • YYYY-MM-DD = 2009-07-01

  • YYYY.MM.DD = 2009.07.01

D specifies a number from 1 to 31. M specifies a number from 1 to 12 or the name of the month in three letters (Sep) or complete (September). Y specifies the year in a four-digit format.

Value: Specify the second value for the comparison. If you select Data Entry Field as the value type, specify the date in the format you select in the Date Format field.

Other value types are possible. Your policy requirements determine whether they are useful. If you have set up a Liberty User Profile or an LDAP attribute that corresponds to the date, you can use this option and select your attribute. The Date Format field does not apply to these value types.

Result on Condition Error: Specify what the condition returns when the comparison of the two values returns an error rather than the results of the comparison. Select either False or True. If you do not want the action applied when an error occurs, select False. If you want the action applied when an error occurs, select True.