Reputation: 1492
I'm receiving date response encoded: 1367726400000 from a webservice.
How can I make it in dd-mm-yy Format?
Upvotes: 0
Views: 265
Reputation: 4158
Try this code-
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
System.out.println("Now: " + sdf.format(new Date(1367726400000 )));
Upvotes: 3