Java Today startOfToday()

Here you can find the source of startOfToday()

Description

start Of Today

License

Apache License

Declaration

public static long startOfToday() 

Method Source Code

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

import java.util.*;

public class Main {

    public static long startOfToday() {
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);
        Date date = calendar.getTime();
        return date.getTime();
    }//ww  w. jav  a  2  s .c  om
}

Related

  1. isToday(String sdate)
  2. isToday(String sdate)
  3. parseToday(String s)
  4. plusDaysToday(int days)
  5. sameTimeToday(Date time)
  6. today()
  7. today()
  8. today()
  9. today()