Hi guys, i have a String time 23:00, how do i subtract it against a String today's time and get the remaining minutes? do i parse the String into a date type? any ideas is appreciated, thanks.
public String getTime()
{
SimpleDateFormat sdf = new SimpleDateFormat("kk:mm");
Date s = sdf.parse("23:00");
return sdf.format(s);
}
public String now()
{
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
Date d = Calendar.getInstance().getTime();
return sdf.format(d);
}