How to convert date format to DD-MM-YYYY in C#? I am only looking for DD-MM-YYYY format not anything else.
See Question&Answers more detail:osHow to convert date format to DD-MM-YYYY in C#? I am only looking for DD-MM-YYYY format not anything else.
See Question&Answers more detail:osstring formatted = date.ToString("dd-MM-yyyy");
will do it.
Here is a good reference for different formats.