Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Date getDate(int hour, int time, int year, int month, int day) { final Calendar calendar = Calendar.getInstance(); calendar.set(year, month, day, hour, time); Date date = calendar.getTime(); return date; } }