Sorry for my English. I have current time 2015-07-31 12:19:55
and last time 2015-07-31 13:38:20
and i don't know how to get date difference. Example:
2015-07-31 12:19:55 - 2015-07-31 13:38:20 = date what i need
My simple code:
private Date date = new Date();
private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
private String currectDate = dateFormat.format(date);
private String lastLoginDate = "2015-07-31 12:19:55";