Java Day From calculatorStartTimeOnDay(Date date)

Here you can find the source of calculatorStartTimeOnDay(Date date)

Description

calculator Start Time On Day

License

Open Source License

Declaration

public static long calculatorStartTimeOnDay(Date date) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {

    public static long calculatorStartTimeOnDay(Date date) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);/*from w w  w.  j av  a  2s  .com*/
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);
        return cal.getTimeInMillis();
    }
}

Related

  1. calculateDate(Date startDay, int days)
  2. clearDay(long timeInMillis)
  3. CompareDay(Date orgin, Date target)
  4. convertYYMMDDToDate(int y, int m, int d, boolean beginning_of_day)
  5. createInDays(final Date from, final int amount)