• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP abd Date Object

 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out java.text.SimpleDateFormat
Dave.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic