Domanda

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?

È stato utile?

Soluzione

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!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top