Java Today getTodayZero()

Here you can find the source of getTodayZero()

Description

get Today Zero

License

Apache License

Declaration

public static Date getTodayZero() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Date;

public class Main {
    public static Date getTodayZero() {
        java.util.Calendar c = java.util.Calendar.getInstance();
        c.setTime(new Date());
        c.set(java.util.Calendar.HOUR_OF_DAY, 0);
        c.set(java.util.Calendar.MINUTE, 0);
        c.set(java.util.Calendar.SECOND, 0);
        return c.getTime();
    }/*from  w  w w .j  a  v  a2s . c om*/
}

Related

  1. getTodayTime()
  2. getTodayTimeForDB()
  3. getTodayWithTime(final String iTime)
  4. getTodayYMD()
  5. getTodayYmd()
  6. getTodayZero()
  7. getTodayZeroHour()
  8. getTommorrow(String today)
  9. getYestoday()