public final class Util extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
USEMILLISECONDS |
Modifier and Type | Method and Description |
---|---|
static String |
formatJdbcDate(Date date)
Given a Date, return a string in the standard jdbc form: yyyy-MM-dd HH:mm:ss.SSS This method should only be used by write operations.
|
static Date |
parseJdbcDate(String string)
Given an input string in JDBC form, parse it and return a date object.
|
public static String formatJdbcDate(Date date)
date
- input datepublic static Date parseJdbcDate(String string)
string
- jdbc date string in the form yyyy-MM-dd HH:mm:ssIllegalArgumentException
- on failure