Question: how to convert dd-mm-yyyy to dd/mm/yyyy in c#?
Answer: You should use MM/dd/yyyy format instead. DateTime dt = DateTime. ParseExact("04/26/2016", "MM/dd/yyyy", CultureInfo. InvariantCulture);