I'm using C# to present a report. I'm using some sample code, which I admittedly understand only slightly.
Here's the line where I try to pass the data:
parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
I can pass a datetime parameter for an rpt-only parameter, using this format: "1/15/2006" but that won't work if the parameter has to get passed to the rpt's stored procedure. I have tried a half dozen formats, all to no avail.
Here they are:
"Date(2007,12,30)"
"2007-12-30 00:00:00"
"Date(2007,12,30 00:00:00)"
"12/30/2006" (This works for the rpt parameter.)
"CDate(12/30/2006 12:01:00)"
Thanks in advance.
Here's the line where I try to pass the data:
parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
I can pass a datetime parameter for an rpt-only parameter, using this format: "1/15/2006" but that won't work if the parameter has to get passed to the rpt's stored procedure. I have tried a half dozen formats, all to no avail.
Here they are:
"Date(2007,12,30)"
"2007-12-30 00:00:00"
"Date(2007,12,30 00:00:00)"
"12/30/2006" (This works for the rpt parameter.)
"CDate(12/30/2006 12:01:00)"
Thanks in advance.