I have a package with a procedure that I am trying to call from my ASP.NET application. I think my problem is with the Dates im passing.
Here is my SQL Developer code.
create or replace package body spectrum_cribeast as
procedure rcgetspectrumdata(startdt in DATE, enddt in DATE, v_userid in varchar2, rcdata out refcursor) as
NEWSTARTDATE date := TRUNC(startdt);
NEWENDDATE date := TRUNC(enddt);
OPEN rcdata FOR
Select * from vwinspectioninfo Where INSPECTION_DT between TO_DATE(NEWSTARTDATE) and TO_DATE(NEWENDDATE) and INSPECTOR = v_userid;
My dates im passing in are in mm/dd/yyyy format and I can see in my Oracle table that the format is 01-JAN-17 format. How can I get the correct format to work so I can return a ref_cursor and get that data to my front end?
Any help would be very appreciative