Moved errorCheck code

moved errorcheck() code from date.process to date.errorcheck