Java Calendar Day getStartOfDay(Calendar cal)

Here you can find the source of getStartOfDay(Calendar cal)

Description

get Start Of Day

License

Apache License

Declaration

public static Calendar getStartOfDay(Calendar cal) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static Calendar getStartOfDay(Calendar cal) {
        Calendar ret = Calendar.getInstance();
        ret.setTime(cal.getTime());/*from  w  w w  .  j a v  a  2 s. com*/
        ret.set(11, 0);
        ret.set(12, 0);
        ret.set(13, 0);
        ret.set(14, 0);
        return ret;
    }
}

Related

  1. getOneDayLaterCalendar(Date date)
  2. getPrincipalAfterCompoundingInterest( Calendar currentDate, Float principal, Integer depositPeriod, double interestPerDay, Integer compoundingInterval, Integer postingInterval)
  3. getRelativeCalendar(int offsetDays)
  4. getSafeTimeForAllDay(Calendar cal)
  5. getStartAndEndOfDay(Calendar calendar)
  6. getThatMonday(Calendar cal)
  7. getTodayCalendar()
  8. getWorkingDay(Calendar beginDate, Calendar endDate)
  9. getWorkingDay(Calendar d1, Calendar d2)