• Post Reply Bookmark Topic Watch Topic
  • New Topic

Parse A Date String  RSS feed

 
Scott Maclary
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I get the parse through a date string 09/24/2006 21:18 to return it as September 24th, 2006? (Yes...I am dropping the timestamp at the end).
 
Brian Mozhdehi
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the class SimpleDateFormat, in the java.text package.

Its use is detailed fairly well here:

http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!