File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Converting String to date 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 "Converting String to date "March 4, 2003"" Watch "Converting String to date "March 4, 2003"" New topic

Converting String to date "March 4, 2003"

Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
I have a date String "March 4, 2003", I want to convert it to a java.util.Date and java.sql.Date.
How to do it.
Thank you
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Use: SimpleDateFormat.parse()

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
wood burning stoves
subject: Converting String to date "March 4, 2003"
Similar Threads
is it possible to extend the exam date?
Convert String to Date
Adding a day to a
how to use date in java
Date format in Sun voucher.