File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Date Validation
 
Similar Threads
Quick Date Question
How to determine Data Format while we are getting Data from Excel Sheet
date comparison using javascript
conversion of date
How to fetch Date Field from excel sheet in Java