Example #1
0
  public static String setSQLString(Timestamp columnValue) {

    String strColumnValue = "";
    if (columnValue != null) strColumnValue = "'" + columnValue.toString() + "'::timestamp";
    else strColumnValue = "null::timestamp";

    return strColumnValue;
  }
Example #2
0
 public static void main(String[] args) throws Exception {
   Timestamp ts = getTimestamp("2011-12-01T00:00:00.000+01:00");
   System.out.println(ts.toString());
 }