Here you can find the source of createDates(int yy, int mm, int dd, int hh, int min, int ss)
public static Date createDates(int yy, int mm, int dd, int hh, int min, int ss)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date createDates(int yy, int mm, int dd, int hh, int min, int ss) { Calendar c1 = Calendar.getInstance(); c1.set(Calendar.YEAR, yy); c1.set(Calendar.MONTH, mm); c1.set(Calendar.DAY_OF_MONTH, dd); c1.set(Calendar.HOUR_OF_DAY, hh); c1.set(Calendar.MINUTE, min); c1.set(Calendar.SECOND, ss); return c1.getTime(); }/* w w w.ja v a2s . co m*/ }