Here you can find the source of getTimeinMillis(int year, int month, int day)
public static long getTimeinMillis(int year, int month, int day)
//package com.java2s; import java.util.Calendar; public class Main { public static long getTimeinMillis(int year, int month, int day) { Calendar cal = Calendar.getInstance(); // Note that months start from 0 (January) cal.set(year, month - 1, day);//from www . j av a2s . co m return cal.getTimeInMillis(); } }