nexus490
nexus490

Reputation: 817

Converting Epoch time to date

I have some code which works out the epoch time for the first day of the current month. How would i convert this to a normal date so i can then access which day the first of the month was?

Upvotes: 1

Views: 1670

Answers (1)

jjNford
jjNford

Reputation: 5270

Use the SimpleDateFormat object in the Java API.

http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html

Very simple and very clean.

Upvotes: 1

Related Questions