Java Today getTodayZeroHour()

Here you can find the source of getTodayZeroHour()

Description

get Today Zero Hour

License

Open Source License

Declaration

public static Date getTodayZeroHour() 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {

    public static Date getTodayZeroHour() {
        Calendar cal = Calendar.getInstance();
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.HOUR, 0);
        return cal.getTime();
    }/*www.j  a  v a2 s.  c o m*/
}

Related

  1. getTodayWithTime(final String iTime)
  2. getTodayYmd()
  3. getTodayYMD()
  4. getTodayZero()
  5. getTodayZero()
  6. getTommorrow(String today)
  7. getYestoday()
  8. getYestoday(String sourceDate, String format)
  9. isBeforeToday(Date date)