This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes converting a number to its date equivalent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "converting a number to its date equivalent" Watch "converting a number to its date equivalent" New topic
Author

converting a number to its date equivalent

Mohit Sinha
Ranch Hand

Joined: Nov 29, 2004
Posts: 125
Hi All,

I am looking for the right way to convert a date which we receive in a number format(YYYYMMDD - 20010530) into a java date object equivalent.

Do post your thoughts.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

Did you check out java.text.DateFormat?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: converting a number to its date equivalent
 
It's not a secret anymore!