I am experiencing a problem with date formatting.
I have a variable that extracts the date of issuance of an invoice of thhe XML in the format 08/28/2019 17:27:24.
I need the date to be in ddMMyyyy format 28082019
My variable is a string
I tried it but it didn’t work
DateTime.ParseExact(dhEmi, “ddMMaaaa”, system.Globalization.CultureInfo.InvariantCulture).ToString