cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DataSource

0 Kudos
144

I'm trying to include the datasource in my code to complete the date, but as soon as I run the error application in this part:

if (!string.IsNullOrWhiteSpace(startdate))
            {
                var ddmmyyyy = startdate.Split('/');
                var yyyymmdd = $"{ddmmyyyy[2]}/{ddmmyyyy[1]}/{ddmmyyyy[0]}"; - The index is outside the matrix limits
                startdate = $"convert(date,'{yyyymmdd}')";
            }

maybe someone can help me please

Accepted Solutions (0)

Answers (0)