how to validate the date in text field if wrong month or date is entered

ex if month>14 or date >31

This particular issue has nothing to do with netbeans, but more a concept on how to parse a date. Check out this link. It should give you a place to start.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.