Meaningless Drivel is fun!
The moose likes Servlets and the fly likes JSP abd Date Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP abd Date Object" Watch "JSP abd Date Object" New topic

JSP abd Date Object

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I got a form where a user type a date in the following format:
06/23/99 how can I convert to Date object in Java?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Check out java.text.SimpleDateFormat
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

If you search in the Java in General (beginners) forum, you'll find a post i made about this. That particular API gave me some trouble, so take a look at the code I have there for some help.
I agree. Here's the link:
subject: JSP abd Date Object
It's not a secret anymore!