Ahmad Shahwaiz
Ahmad Shahwaiz

Reputation: 1492

Blackberry Date Format?

I'm receiving date response encoded: 1367726400000 from a webservice.

How can I make it in dd-mm-yy Format?

Upvotes: 0

Views: 265

Answers (1)

Rince Thomas
Rince Thomas

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

Related Questions