Here you can find the source of fromStringUS(String dateString)
public static Date fromStringUS(String dateString) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String DATE_FORMAT_MM_dd_yyyy = "MM/dd/yyyy"; public static Date fromStringUS(String dateString) throws ParseException { return fromString(dateString, DATE_FORMAT_MM_dd_yyyy); }//from w w w . j a v a 2 s. co m public static Date fromString(String dateString, String format) throws ParseException { SimpleDateFormat inputFormat = new SimpleDateFormat(format); return inputFormat.parse(dateString); } }