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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with date formatting