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
datetime DateWithTimeNoSeconds = DateTime.Now.Date.AddHours(DateTime.Now.Hour).AddMinutes(DateTime.Now.Minute);
This gets the current date & time's date and adds hours and minutes.