public static Date valueOf (String s)

Converts a string in JDBC date escape format to a Date value.

Parameters:
s    a String object representing a date in in the format "yyyy-[m]m-[d]d". The leading zero for mm and dd may also be omitted.

Returns:  a java.sql.Date object representing the given date

Exceptions:
IllegalArgumentException    if the date given is not in the JDBC date escape format (yyyy-[m]m-[d]d)