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