Java Day From CompareDay(Date orgin, Date target)

Here you can find the source of CompareDay(Date orgin, Date target)

Description

Compare Day

License

Open Source License

Declaration

public static boolean CompareDay(Date orgin, Date target) 

Method Source Code

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

import java.util.*;

public class Main {
    private static final int OneDay = 1;

    public static boolean CompareDay(Date orgin, Date target) {
        long interval = target.getTime() - orgin.getTime();
        return (int) (interval / (24 * 60 * 60 * 1000)) < OneDay;
    }//  w w  w .j  ava 2s. co  m
}

Related

  1. calculateDate(Date startDay, int days)
  2. calculatorStartTimeOnDay(Date date)
  3. clearDay(long timeInMillis)
  4. convertYYMMDDToDate(int y, int m, int d, boolean beginning_of_day)
  5. createInDays(final Date from, final int amount)
  6. day(Integer time)
  7. dayFromDateValue(long x)