Here you can find the source of stringToDate(String dateStr)
public static java.sql.Date stringToDate(String dateStr)
//package com.java2s; //License from project: Open Source License public class Main { public static java.sql.Date stringToDate(String dateStr) { return java.sql.Date.valueOf(dateStr); }//from ww w . ja v a2s . co m }