The getTime() method of the Date class returns a long with the time in milliseconds.
http://developer.android.com/reference/java/util/Date.html
So if you have a Date object somewhere like:
Date date;
You can do:
System.out.println(date.getTime());
And it will print out the time in milliseconds.