When user has set his date format other than System format (which usually is YYYY-MM-dd) , any UI policy that checks if the date selected for a variable is before today, fails in Service Portal. It works only with the above format.

Steps to Reproduce

  1. Create a Catalog item (optional)
  2. Create a Variable in it as type of Date. Let's name it start_date
  3. Create a UI Policy with below condition:
    When to run : [start_date] [before] [today] 

    Run Script : True

    Execute If true:

    function onCondition() {

    alert('true case: before today');

  4. Set logged in user's Date format as YYYY-MM-DD
  5. Go to Service Portal, and set some date prior to today
  6. Notice alert will appear
  7. Set Date format as dd/MM/YYYY
  8. Go to Service Portal, and set some date prior to today

Expected Result : Alert should appear

Actual Result : Alert does not appear


This issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.


Related Problem: PRB1332227

Seen In

Helsinki Patch 3
Helsinki Patch 4
SR - ITOM - Fundamentals Istanbul Jakarta Kingston r1 - v5.99.6

Fixed In

London Patch 9
Madrid Patch 5
New York

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-01-27 04:50:29