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