Java Date Set setStartDay(Date date)

Here you can find the source of setStartDay(Date date)

Description

set Start Day

License

Open Source License

Declaration

public static Date setStartDay(Date date) 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;

public class Main {

    public static Date setStartDay(Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);//from   ww  w  .j av  a2s  . c  o m
        calendar.set(Calendar.HOUR_OF_DAY, 00);
        calendar.set(Calendar.MINUTE, 00);
        calendar.set(Calendar.SECOND, 00);
        return calendar.getTime();
    }
}

Related

  1. setMinDate(Date d)
  2. setMinSeconds(Date date)
  3. setMinute(Date date, int minute)
  4. setMinutes(Date date, int amount)
  5. setStartDateIfNull(java.util.Date start)
  6. setStartTime(Date date)
  7. setTime(Date date, int hourOfDay, int minute, int second)
  8. setTime(Date date, int hours, int minutes, int seconds, int millis)
  9. setTime(Date date, String timeString)