Here you can find the source of parseDateyyyy_MM_DD(String ds)
public static Date parseDateyyyy_MM_DD(String ds) throws ParseException
//package com.java2s; import java.sql.Date; import java.text.ParseException; import java.text.SimpleDateFormat; public class Main { public final static String DATE_FORMAT_yyyy_MM_dd = "yyyy-MM-dd"; public static Date parseDateyyyy_MM_DD(String ds) throws ParseException { return new Date(new SimpleDateFormat(DATE_FORMAT_yyyy_MM_dd).parse(ds).getTime()); }// w w w . j a va 2s.c om }