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
Something like this for date and time without seconds:
private DateTime _startTime; public DateTime StartTime { get { return _startTime; } set { _startTime = value.AddSeconds(-value.Second) .AddMilliseconds(-value.Millisecond); } }