Calculating remaining time?
<p>I have a time that was generated by like so:</p>

<pre><code>SimpleDateFormat dateFormatUCT = new SimpleDateFormat("yyyy-MM-dd HH:mm");
dateFormatUCT.setTimeZone(TimeZone.getTimeZone("UCT"));

String deadline = dateFormatUCT.format(new Date());
</code></pre>

<p>I've now got this as a string called deadline. I want to get the current date time again later and compare if the deadline has passed or not. If its not passed I want to calculate how much time is remaining. Is there a good in-built way of doing this already bearing in mind that the data is now a String? </p>

<p>TIA </p>
