how to convert date to yyyy-mm-dd in c#?
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).