Java Today getStartOfToday()

Here you can find the source of getStartOfToday()

Description

get Start Of Today

License

Apache License

Declaration

public static Date getStartOfToday() 

Method Source Code

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

import java.util.*;

public class Main {

    public static Date getStartOfToday() {
        Calendar today = Calendar.getInstance();
        int year = today.get(Calendar.YEAR);
        int month = today.get(Calendar.MONTH);
        int day = today.get(Calendar.DAY_OF_MONTH);
        return new GregorianCalendar(year, month, day, 0, 0, 0).getTime();
    }//w  ww .  java 2  s .  c om
}

Related

  1. getFirstDate(Date today)
  2. getLastCalendarOfToday()
  3. getNDaysFromToday(int n)
  4. getSomedayAfterToday(int x)
  5. getStartOfDayRelative(int daysFromToday)
  6. getStartOfToday()
  7. getStringToday()
  8. getTimeNumberToday()
  9. getToday()