used BCDtoint in getTime and getDate