How to put the string 22012018 which is a date in the American format to save to the database? The code below returns me the value:
2018-22-01
That is, YEAR-DAY-MONTH
The right one would be MONDAY-DAY
EstFData = Path.GetFileName(arquivo).Substring(4, 8).Trim();
EstFData = EstFData.Substring(4, 4) + "-" + EstFData.Substring(3, 2) + "-" + EstFData.Substring(0, 2);