As an alternative, you can still provide a value with DateSerial expression
dateDebutVar.InitBy = StiVariableInitBy.Expression;
dateDebutVar.Value = "DateSerial(2000,01,01)";
Search found 2 matches
- Thu May 25, 2023 4:50 pm
- Forum: Stimulsoft Ultimate
- Topic: System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'
- Replies: 10
- Views: 13768
- Wed May 24, 2023 4:19 pm
- Forum: Stimulsoft Ultimate
- Topic: System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'
- Replies: 10
- Views: 13768
Re: System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'
Had the same error trying to set a date value on some DateTime variable. Worked fine with "Today" but not with actual dates values. I tried several formats but format was not the issue. Ended up setting "InitBy" property : myVar.InitBy = StiVariableInitBy.Value; ...and now my rep...