Possible Duplicate:
Calculate date/time difference in java
how would a future date such as Sat Feb 17 2012 be converted into milliseconds in java that can then be subtracted from the current time in milliseconds to yield time remaining until that future date.
The simplest technique would be to use
DateFormat:A more difficult technique (that basically does what
DateFormatdoes for you) involves parsing it yourself (this would not be considered best practice):