Java Date Compare CompareDate(Date date, Date otherdate)

Here you can find the source of CompareDate(Date date, Date otherdate)

Description

Compare Date

License

Open Source License

Declaration

public static boolean CompareDate(Date date, Date otherdate) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.DateFormat;

import java.util.Date;

public class Main {

    public static boolean CompareDate(Date date, Date otherdate) {
        DateFormat format = DateFormat.getDateInstance(DateFormat.MEDIUM);
        String datesb1 = format.format(date);
        String datesb2 = format.format(otherdate);
        return datesb1.equals(datesb2);
    }//from ww w .  ja va 2s.  co  m
}

Related

  1. compare_date2(String finalDate, String enddate)
  2. compareCalendars(Date fechaAComparar, Date fechaBase)
  3. compareDate(Date d1, Date d2)
  4. compareDate(Date d1, Date d2)
  5. compareDate(Date d1, Date d2)
  6. compareDate(Date date1)
  7. compareDate(Date date1, Date date2)
  8. compareDate(Date date1, Date date2)
  9. compareDate(Date date1, Date date2)