I am working in business application which allow custom scripting. Currently the Date object in the application show up as 2.0130725E7, may I know how to convert this into human readable format?
Asked
Active
Viewed 53 times
1
-
Are we talking `JavaSE` here ? If yes, you can convert the `Date` like this `Date date = new Date();DateFormat dateFormat = DateFormat.getDateInstance();System.out.println(dateFormat.format(date));`. __OUTPUT : `Jul 25, 2013`__. Here `DateFormat` class is a part of `java.text` package. I hope this might help :-) – nIcE cOw Jul 25 '13 at 14:15