static public Date adjustDate ( Date date ) { long milliToAdjust = ResultUtil . msDiffJulianToGregorian ( date ) ; if ( milliToAdjust != 0 ) { // add the difference to the new date return new Date ( date . getTime ( ) + milliToAdjust ) ; } else { return date ; } }
Adjust date for before 1582 - 10 - 05