HOw can i convert the String "2012-07-30" to Date object with same format 2012-07-30 which is date not a string. I've tried but i get the result in string. plz help
47pirates
9
Junior Poster in Training
Recommended Answers
Jump to PostDate objects don't have a format, they just hold a date.
The SimpleDateFormat class has easy methods to parse strings like yours into Dates, and to display Dates in yopuir desired format.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.