Вопрос

I need to format the date of a multiselect parameter list. I've tried to format it within the code by using:

to_date(eo.exam_date, 'DD-Mon-YY')

In both my Main Dataset and my Parameter Dataset "P_Exam_Date" however the format is still wrong see attached image:

enter image description here

How would I format this?

Это было полезно?

Решение

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!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top