I construct a time as follows:
string sTime = OrderTime.TimeOfDay.Hours.ToString(). + ":" + OrderTime.TimeOfDay.Minutes.ToString() + ":" + OrderTime.TimeOfDay.Seconds.ToString();
How can I ensure that each component of the time (Hours, minutes or seconds) is prefixed with zero of the value is less than 10?
Many thanks.
...
Go to the complete details ...