• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting String to date "March 4, 2003"  RSS feed

 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Garandi
 
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use: SimpleDateFormat.parse()
 
A day job? In an office? My worst nightmare! Comfort me tiny ad!
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!