public String quote ( Date date ) { return ( date == null ) ? null : escape ( String . valueOf ( date ) ) ; }
Converts the date to a string and surrounds it in single - quotes via the escape method . If the date is null returns null .