문제

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