We have variable 'mydate' that has data type as DateTime and that is init by expression.
Can I pass a value like (2/3/2023) to this variable? Or do we have to pass the expression (Today.AddDays(8)) only?
It is working when we pass expression. But it is failing (throwing below error) with the value '2/3/2023'.
System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)
Snapshot for your reference:
Can someone help why it is not converting 2/3/2023 to DateTime when we pass value?

I got an answer from stimulsoft support: