Java Calendar Day setStartOfDay(final Calendar calendar)

Here you can find the source of setStartOfDay(final Calendar calendar)

Description

set Start Of Day

License

Open Source License

Declaration

public static void setStartOfDay(final Calendar calendar) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    public static void setStartOfDay(final Calendar calendar) {
        calendar.set(Calendar.HOUR, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);
    }//from  w  w w .j  a  va2  s .co m
}

Related

  1. sameDay(Calendar a, Calendar b)
  2. sameDay(Calendar c1, Calendar c2)
  3. sameDay(Calendar one, Calendar two)
  4. setDayToCalendar(int days, Calendar calendar)
  5. setEndDay(Calendar cal)
  6. setStartTimeOfDay(Calendar calender)
  7. setToBeginningOfDay(Calendar cal)
  8. setToStartOfDay(Calendar start)
  9. setToStartTimeOfTheDay(Calendar c)