Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static long getTime(int year, int month, int day, int hourOfDay, int minute) { Calendar calendar = Calendar.getInstance(); calendar.set(year, month - 1, day, hourOfDay, minute); return calendar.getTimeInMillis(); } }