This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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
conversion of date
How to fetch Date Field from excel sheet in Java
How to determine Data Format while we are getting Data from Excel Sheet
Quick Date Question
date comparison using javascript