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