I want to replace the hour on a date, for instance, if I have 07/07/13 11:15, I'll want to get 07/07/13 00:00 from the first date.
So, what I'm trying to do is this:
textDate := TO_CHAR (auxDate, 'DD/MM/RR')||' '||textHour||':'||textMin;
endDate := TO_DATE(textDate, 'DD/MM/RR hh:mm');
When I run the SP, it gives me the following error:
ORA-01810: format code appears twice
auxDate is declared as DATE, textDate as VARCHAR2(20), endDate is DATE.
Can you help me solve this?