Here you can find the source of setEndDay(Calendar cal)
public static Calendar setEndDay(Calendar cal)
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { public static Calendar setEndDay(Calendar cal) { cal.set(11, 23);// w w w . j a v a2 s . co m cal.set(12, 59); cal.set(13, 59); return cal; } }