You should use to_char(eo.exam_date, 'DD-Mon-YY')
to_date()
just gives a date in return with format as in NLS_DATE_FORMAT
of your SQL Session. Whereas to_char()
gives you a formatted(as you gave) string. So your target variable should be a String as well!