{"id":43819,"date":"2020-02-21T09:24:30","date_gmt":"2020-02-21T16:24:30","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=43819"},"modified":"2020-08-26T14:53:44","modified_gmt":"2020-08-26T21:53:44","slug":"kb00010723-date-regex-expression-validation-error","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/","title":{"rendered":"KB00010723: Date Regex Expression Validation Error"},"content":{"rendered":"
Issue: <\/strong><\/p>\n The error “Date could not satisfy the validation pattern” (Figure 1) may occur when a date regex expression has been defined in Validation Rules<\/strong> (Figure 2) but is already functioning in Regex Builder <\/strong>(Figure 3). This issue applies only to 2019.2.<\/p>\n <\/p>\n Figure 1: Validation Pattern Error<\/em><\/p>\n <\/p>\n Figure 2: Date Regex Expression in Validation Rules<\/strong><\/em><\/p>\n <\/p>\n Figure 3: Regex Builder<\/strong> Screen<\/em><\/p>\n Solution: <\/strong><\/p>\n To resolve this issue, implement the following script to set the field value to lower case.<\/p>\n This will verify the date format of manual user entry without using the Date regex expression in Validation Rules<\/strong>.<\/p>\n Important<\/strong>: You will need to click Validate<\/strong> twice.<\/p>\n","protected":false},"excerpt":{"rendered":" Issue: The error “Date could not satisfy the validation pattern” (Figure 1) may occur when a date regex expression has […]<\/p>\n","protected":false},"author":62,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12365],"tags":[1430],"yoast_head":"\nif (currentFieldName.equals(\"Document Date\")){\r\n\r\ndlfValueDoc.setText(currentFieldValue.toLowerCase());<\/pre>\n