I having students list of admission and in that I have to show student with color when that student get admitted with current date and time suppose todays date and time like this 08/08/2018 12:36pm getting through the json.
So I have to show that student with color till tomorrow means 09/08/2018 12:36pm,how can I keep that student record with color till 24 Hours and after completing of 24 Hours want to remove color and keep it normal.
Thanks in Advance.
Now I compared only dates
if (SystemDte.equals(DataBaseDate)) {
try {
viw.setBackgroundColor(Color.parseColor("#ffff00"));
} catch (Exception e) {
e.printStackTrace();
}
}
else {
try {
viw.setBackgroundColor(Color.parseColor("#CABBBBBB"));
} catch (Exception e) {
e.printStackTrace();
}
}