internal function for date to excel serial conversion added