Question

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?

Was it helpful?

Solution

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!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top