I have a date from server in the format yyyy-mm-dd HH:mm:ss .I have the current time in millis by System.currentTimeMillis(). I want to compare both dates and see if date received from server is future date and if it is so schedule an alarm for the future date.
so my question how to compare this 2 different format dates and how to get remaining time (future- current) so as to schedule the alarm.
Edit:
I already tried parsing the date in millis but it doesnt return value as same format as System.currentTimeMillis(). so it fails