Reputation: 817
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
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