Here you can find the source of dateParse(String date)
public static Date dateParse(String date) throws Exception
//package com.java2s; /*L/*www . j av a 2 s .c om*/ * Copyright SAIC, Ellumen and RSNA (CTP) * * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details. */ import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /** * Parse a date string into an object. */ public static Date dateParse(String date) throws Exception { DateFormat sdf = new SimpleDateFormat("MM/dd/yyyy"); return sdf.parse(date); } }