Here you can find the source of getDateObj(String argsDate, String split)
public static Date getDateObj(String argsDate, String split)
//package com.java2s; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { public static Date getDateObj(int year, int month, int day) { Calendar c = new GregorianCalendar(); c.set(year, month - 1, day);//w ww .j a v a 2 s . c om return c.getTime(); } public static Date getDateObj(String argsDate, String split) { String[] temp = argsDate.split(split); int year = Integer.valueOf(temp[0]); int month = Integer.valueOf(temp[1]); int day = Integer.valueOf(temp[2]); return getDateObj(year, month, day); } public static Date getDateObj() { Calendar c = new GregorianCalendar(); return c.getTime(); } }