Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Date; import java.util.GregorianCalendar; public class Main { public static Date getDate(int year, int month, int day, int hour, int minute) { GregorianCalendar calendar = new GregorianCalendar(year, month - 1, day, hour, minute); return calendar.getTime(); } }