Date validation is not working when using the old value and the new value of Return date on custom client script using GlideDateTime functionIssue ProblemDate validation is not working when using the old value and the new value of Return date on custom client script using GlideDateTime function Steps to reproduce:1. Login to the instance2. Open any record where the custom script is called to change the date3. Observed the returned date is on format dd-mm-yyyy instead of mm-dd-yyyy making failing another custom validations. And for another records format is displayed as mm-dd-yyyy instead of dd-mm-yyyy ReleaseGenericCauseRoot CauseThe validation failure occurred due to inconsistent GlideDateTime function usage between the old and new date values, causing ambiguity when dates had days ≤ 12. ResolutionSteps to Resolve1. You are using GlideDateTime function without converting the format of the used dates. That's why the calculation is wrong. You need to use the same format to compare. Use getByFormat on the dates to fix that on your custom code.For more information review:=> GlideDate - Global