Here you can find the source of dateAddSpaceMilliSecond(Date date, int milliSecond)
public static Date dateAddSpaceMilliSecond(Date date, int milliSecond)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Date dateAddSpaceMilliSecond(Date date, int milliSecond) { Calendar cal = Calendar.getInstance(); cal.setTime(date);//ww w . j av a 2s. c o m cal.add(Calendar.MILLISECOND, milliSecond); return cal.getTime(); } }