Here you can find the source of parseStringToUtilDate(String strDate)
public static java.util.Date parseStringToUtilDate(String strDate)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; public class Main { public static java.util.Date parseStringToUtilDate(String strDate) { java.util.Date date = null; try {//from w w w.j a va 2s.c o m SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); date = df.parse(strDate); } catch (Exception ex) { ex.printStackTrace(); } return date; } }