Link to home
Start Free TrialLog in
Avatar of Karen Schaefer
Karen SchaeferFlag for United States of America

asked on

TypeMismatch when Converting number yyyymmdd to mm/dd/yyyy

I need to convert a number/date field from yyyymmdd to mm/dd/yy and I am getting a data type mismatch.

HIRE_DATE: DateSerial(Left$([EFFECT_HIRE_DATE],4),Mid$([EFFECT_HIRE_DATE],5,2),Right$([EFFECT_HIRE_DATE],2))

what am I missing
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Karen Schaefer

ASKER

What needs to be modified to be able to handle null value -
thanks that did it.

K