You can simply call the getTime() method of date object. please follow through the sample below
import java.util.Date;
public class Test {
@SuppressWarnings("deprecation")
public static void main(String[] args) {
System.out.println(new Date("Sat Feb 17 2012").getTime());
}
}