I am try to write a validation rule using javaScript. Date range should not be greater than 90 days.In order to do that,I have created two date fields and directly access in Visualforce page and the date format is dd/mm/yyyy.
Now whenever I try to find difference between these two dates using javaScript, JavaScript function convert these two input in mm/dd/yyyy format.Thus I am getting wrong validation.
I used different date format function but unfortunately it didn't work.
Please help me !!!!
Sunil
Best Answer
Build a utility function to convert like this...