This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60053
    
  65

Did you check out java.text.DateFormat?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: converting a number to its date equivalent
 
Similar Threads
number question
milliseconds to hh:mm:ss format
How to iterate a Set (2 steps once)
validating forms
Reading the last (or last but 1) line in a text file