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 format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "date format" Watch "date format" New topic
Author

date format

MInu
Ranch Hand

Joined: Oct 09, 2003
Posts: 517
Hi...

I want to check whether a string is in a valid date format or not ie(yyyy/MM/dd) form.How it is to be done in java.

Thanks


God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
With a little work you could write the code that does this yourself. However, the Java API provides two classes that may help: DateFormat and SimpleDateFormat. Check out these links for an explanation of the methods that are available for you to use.

Layne


Java API Documentation
The Java Tutorial
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489



ram.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: date format