I have a Date object that is using the method getTime to return the milliseconds since 1/1/1970.
invoiceDate.getTime();
These milliseconds are passed to a java.sql.Date constructor like so:
new java.sql.Date( invoiceDate.getTime() );
And the result is a date in yyyy-MM-dd format.
Now my question is this, is it possible that java.sql.Date can produce an off by one error? For example, say the invoiceDate is set to Thu Jul 02 00:00:00 CDT 2015, is it then possible that java.sql.Date produces 2015-07-01? 
 
     
     
     
    