private static Date getDate ( final AnnotationData pAnnotation , final BitUtils pBit ) { Date date = null ; if ( pAnnotation . getDateStandard ( ) == BCD_DATE ) { date = pBit . getNextDate ( pAnnotation . getSize ( ) , pAnnotation . getFormat ( ) , true ) ; } else if ( pAnnotation . getDateStandard ( ) == CPCL_DATE ) { date = calculateCplcDate ( pBit . getNextByte ( pAnnotation . getSize ( ) ) ) ; } else { date = pBit . getNextDate ( pAnnotation . getSize ( ) , pAnnotation . getFormat ( ) ) ; } return date ; }
Method to get a date from the bytes array