Using .getValue() does not respect the Date format


Description

  • "The following fields contain invalid text: " Error message appears (Error must point to Date/Time fields - In Service Catalog)
  • Date format has changed after Date/Time field is passed through any JavaScript processing


Cause

Resolution

Additional Information

Date Formatting in the ServiceNow Community:

  1. How to set the Date Format
  2. Date Format in Script Output
  3. Setting Date-Time fields on forms