This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Date Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Date Validation" Watch "Date Validation" New topic
Author

Date Validation

Ashwin Kumar
Ranch Hand

Joined: Apr 07, 2005
Posts: 78
Hi,

I am using swing application and trying to validate the entered date should be of mm-dd-yyyy format. How can I check the entered date is mm-dd-yyyy format.?,


Preparing SCEA..<br />SCBCD 5.0<br />SCWCD 1.4<br />SCJP 1.4
Annie Smith
Ranch Hand

Joined: Mar 05, 2005
Posts: 172


Cheers!<br /><b>Annie</b>
Annie Smith
Ranch Hand

Joined: Mar 05, 2005
Posts: 172
Originally posted by shonak valvekar:
Hi,

I am using swing application and trying to validate the entered date should be of mm-dd-yyyy format. How can I check the entered date is mm-dd-yyyy format.?,


Do remember that in SimpleDateFormat, you need to use MM for months. mm means minutes.
 
Have you checked out Aspose?
 
subject: Date Validation
 
It's not a secret anymore!