Java Year Month getFirstTimeOfDay(int year, int month, int day)

Here you can find the source of getFirstTimeOfDay(int year, int month, int day)

Description

get First Time Of Day

License

Apache License

Declaration

public static Calendar getFirstTimeOfDay(int year, int month, int day) 

Method Source Code

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

import java.util.*;

public class Main {

    public static Calendar getFirstTimeOfDay(int year, int month, int day) {
        Calendar cal = Calendar.getInstance();
        cal.set(Calendar.YEAR, year);
        cal.set(Calendar.MONTH, month - 1);
        cal.set(Calendar.DAY_OF_MONTH, day);
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);

        return cal;
    }/*from   ww  w  .  ja  v a  2s  .  com*/
}

Related

  1. getEndDateOfMonth(int year, int month)
  2. getFirstDay(String yearMonthStr, int range)
  3. getFirstDayByMonthWeek(int year, int month, int week)
  4. getFirstDayOfMonth(int year, int month)
  5. getFirstDayOfMonth(int year, int month, Integer day)
  6. getFirstYearMonth()
  7. getMonthDays(Integer year, Integer month)
  8. getMonthDays(Integer year, Integer month)
  9. getPerMonthByCuttentYear()