For example, March 30 is a real date, but February 30 doesn’t exist. I stumbled upon this set of Java Script methods that validates dates (including checking for leap years).
Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
You can check out a demo below: See the Pen Instant Form Validation by Site Point (@Site Point) on Code Pen.
Is it a string/text column you wish to validate matches that pattern? Do you wish to make it a string/text for output, do you wish to make it a Date format?
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"?