Question: how to convert date in yyyy-mm-dd format in c#?
Answer: You can change your Date Format From dd/MM/yyyy to yyyy-MM-dd in following way: string date = DateTime. ParseExact(SourceDate, "dd/MM/yyyy", CultureInfo. InvariantCulture).