Template:isValidDate/documentation

Usage
Takes three parameters: year, month (in English), day. Returns 1 if the date is valid, an empty string otherwise.