public static TimestampType parseDate(String dateIn)
    {
        // Remove any quotes around the timestamp value.  ENG-2623
        String dateRepled = dateIn.replaceAll("^\"|\"$", "").replaceAll("^'|'$", "");
        return new TimestampType(dateRepled);
    }
public static TimestampType parseDate ( String dateIn ) { String dateRepled = dateIn . replaceAll ( "^\"|\"$" , "" ) . replaceAll ( "^'|'$" , "" ) ; return new TimestampType ( dateRepled ) ; }
Parse a date string.  We parse the documented forms, which are:
<ul>
<li>YYYY-MM-DD</li>
<li>YYYY-MM-DD HH:MM:SS</li>
<li>YYYY-MM-DD HH:MM:SS.SSSSSS</li>
</ul>

As it turns out, TimestampType takes string parameters in just this
format.  So, we defer to TimestampType, and return what it
constructs.  This has microsecond granularity.

@param dateIn  input date string
@return        TimestampType object
@throws SQLParser.Exception