This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date Validation
 
Similar Threads
How to fetch Date Field from excel sheet in Java
conversion of date
How to determine Data Format while we are getting Data from Excel Sheet
Quick Date Question
date comparison using javascript