Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar getTodayAt(int hours, int minutes) { Calendar today = Calendar.getInstance(); Calendar cal = Calendar.getInstance(); cal.clear(); int year = today.get(Calendar.YEAR); int month = today.get(Calendar.MONTH); //represents the day of the month int day = today.get(Calendar.DATE); cal.set(year, month, day, hours, minutes, 0); return cal; } }