Q:

How Do I Display the X amount of days since January 1, 1970 in Java

I was wondering what is the best way to solve this problem on java ranch.
http://www.javaranch.com/geekWatch.jsp
Thanks

A:

The general idea can be 

Get the number of seconds(For this understand the Date API in java.) since Jan 1, 1970.
Get the value of seconds in a day 24hrs*60min*60secs.

Now divide the value obtained in 1. by that of 2.
This will give you the number of days.

