I save a file as CSV after loading an Excel file. In the Excel file is a date. In the CSV I want the date to be in UK format regardless of the format in the Excel. I’m doing this but it doesn’t work.
var saveOptions = new CsvSaveOptions('\t');
saveOptions.FormatProvider = CultureInfo.GetCultureInfo("en-GB").DateTimeFormat;
workbook.Save(uploadedFileFullPathWithoutExtension + ".txt", saveOptions);