aspose file tools*
The moose likes Java in General and the fly likes Problem with date formatting 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 » Java in General
Bookmark "Problem with date formatting" Watch "Problem with date formatting" New topic
Author

Problem with date formatting

sahana mithra
Ranch Hand

Joined: Oct 26, 2010
Posts: 72
Dear all,
My system reboot time which is like 20111205105400.375199+330 must be formatted like 05/12/2011 10:54:00 AM IST.
Here is what i have tried




Please help me to overcome this.
Thank you all.
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
You have to use one format to convert the input String to date and another to show the converted date as desired.

sahana mithra
Ranch Hand

Joined: Oct 26, 2010
Posts: 72
Hi Jai,
Thank you so much for the solution.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem with date formatting
 
Similar Threads
How do i print 1 as 01?
Parsing date..?
DateFormat Error
Command Window Shutting Down....
How to convert descriptive dates into Java Date format