1

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?

nexus490
  • 797
  • 5
  • 11
  • 21

1 Answers1

1

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.

jjNford
  • 5,170
  • 7
  • 40
  • 64