I\'m trying to create a string from the DateTime object which yields the format mm:dd:yyyy.
mm:dd:yyyy
Conventionally the DateTime object comes as
DateTime
Usually, I am using DateTime.ToShortDateString() to convert in a Culture-aware manner to a string.
Culture
This way, you can format it to date only respecting the current formatting of the culture set to the current thread.