• Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to parse a String to a Date

 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just can't seem to get my DateFormat to parse a date. What am I missing?? produces:
I'm at the hair-pulling stage.
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Try with the following piece of code and see what is the format

In my system the locale is en_US but the date format is Nov 26, 2003
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That worked. I've submitted feedback on the tutorial.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!