You can convert the dates to Date-objects.
That's easy if they're RFC2822 or ISO8601 format date strings, you can just let Javascript parse the string (https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse).
If not, you can do it with some regexp magic.
With 2 Date objects you can calculate the number of milliseconds between the two dates at the UTC time-zone, which can be converted to number of days.
After that it's just a matter of returning true (accepted) or false (not accepted) in the onsubmit handler.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :