Here you can find the source of parseDateyyyy_MM_DD2(String ds)
public static java.util.Date parseDateyyyy_MM_DD2(String ds) throws ParseException
//package com.java2s; 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 java.util.Date parseDateyyyy_MM_DD2(String ds) throws ParseException { return new java.util.Date(new SimpleDateFormat(DATE_FORMAT_yyyy_MM_dd).parse(ds).getTime()); }/* w ww. j a v a 2 s .c o m*/ }