Here you can find the source of converToDate(String yyyy, String mm, String dd)
public static Date converToDate(String yyyy, String mm, String dd)
//package com.java2s; //License from project: Open Source License import java.util.Date; public class Main { public static Date converToDate(String yyyy, String mm, String dd) { Date date = java.sql.Date.valueOf(yyyy + "-" + mm + "-" + dd); return date; }//from w ww . ja v a 2 s . c o m }