title: how to set timer in format HH:MM:SS to textview by difference time in android?
body: <p>I have current date in format "<strong>2014-05-14T16:23:11.810Z</strong>" and Counter date is "<strong>2014-05-15T16:24:13.810Z</strong>"</p>
  
  <p>I want to display the counter time in between those dates in <strong>HH:MM:SS i.e 24:01:02</strong> in TextView 
        which update continuously by 1 sec. Like timer</p>
  
  <p>but how to calculate the difference between these two dates and convert it into <strong>HH:MM:SS</strong></p>
  
  <p>I writting simple code which countdown timer shows in milliseconds in android :</p>
  
  <pre><code>CountDownTimer timer=new CountDownTimer(300000, 1000) {
          public void onTick(long millisUntilFinished) {
              txtNewBetTimer.setText(""+millisUntilFinished / 1000);
          }
  
          public void onFinish() {
              txtNewBetTimer.setText("Time Up");
          }
      };
      timer.start();
  </code></pre>
  
  <p>I want output like this :</p>
  
  <p><img src="https://i.stack.imgur.com/zId8b.png" alt="enter image description here"></p>
  
  <p>Please anyone help me for this ...</p>
  
  <p>Thanks in advance..</p>