This is achieved by grouping together validation functions in "modules", making it possible to load only those functions that's needed to validate a particular form.
This plugin is available through cdnjs, npm, bower and github.
Folks on the forum may (rightfully) suggest looking at other PDI Steps to help with date validation before trying Java Script Step.
Can you update your post to help describe what you mean by "validate date"?
The answer is then tested to see if it is an integer.
If any test finds the reg Ex Result to be an integer, then the year is LEAP, otherwise its not*/ function is Leapyear() // Check the logic upon every key(up) press that occurs in the Date Input box.
Enter a format string in the input box and click the button to see the resulting output in an alert box.