@Test void toDate() { assertThat(TypeConverter.toDate("2020/06/19")) .isEqualTo("2020-06-19"); }
public static Date toDate(String s) { try { return new Date(StdDateFormat.getDateInstance().parse(s).getTime()); } catch (ParseException e) { throw new IllegalArgumentException(e); } }
TypeConverter { public static Date toDate(String s) { try { return new Date(StdDateFormat.getDateInstance().parse(s).getTime()); } catch (ParseException e) { throw new IllegalArgumentException(e); } } }
TypeConverter { public static Date toDate(String s) { try { return new Date(StdDateFormat.getDateInstance().parse(s).getTime()); } catch (ParseException e) { throw new IllegalArgumentException(e); } }  }
TypeConverter { public static Date toDate(String s) { try { return new Date(StdDateFormat.getDateInstance().parse(s).getTime()); } catch (ParseException e) { throw new IllegalArgumentException(e); } }  static int toInt(String s); static boolean toBoolean(String s); static byte toByte(String s); static short toShort(String s); static long toLong(String s); static float toFloat(String s); static Double toDouble(String s); static BigDecimal toBigDecimal(String s); static byte[] toBytes(String s); static Date toDate(String s); static Time toTime(String s); static Timestamp toTimestamp(String s); static InputStream toAsciiStream(String s); static InputStream toUnicodeStream(String s); }
TypeConverter { public static Date toDate(String s) { try { return new Date(StdDateFormat.getDateInstance().parse(s).getTime()); } catch (ParseException e) { throw new IllegalArgumentException(e); } }  static int toInt(String s); static boolean toBoolean(String s); static byte toByte(String s); static short toShort(String s); static long toLong(String s); static float toFloat(String s); static Double toDouble(String s); static BigDecimal toBigDecimal(String s); static byte[] toBytes(String s); static Date toDate(String s); static Time toTime(String s); static Timestamp toTimestamp(String s); static InputStream toAsciiStream(String s); static InputStream toUnicodeStream(String s);  }