Android Date Compare compareDate(Date date1, Date date2)

Here you can find the source of compareDate(Date date1, Date date2)

Description

compare Date

Declaration

public static int compareDate(Date date1, Date date2) 

Method Source Code

//package com.java2s;

import java.util.Date;

public class Main {
    public static int compareDate(Date date1, Date date2) {
        return date1.compareTo(date2);
    }/*from w  ww .java 2s  .com*/
}

Related

  1. compareCurrentDate(Date currentDate)
  2. compareDate(Date date1, Date date2, int what)
  3. compareDate(String date1, String date2, int what)
  4. dateAfterDate(Date date, long days)
  5. dateBeforeDate(Date date, long days)