Question: how to convert string to date in java in yyyy-mm-dd format 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).