I have three textboxes in my control,for hour, minute and second.
User can input the values in text boxes.
I want to return the combined value in a format like HHH:mm:ss, how can I do that ?
For example if user puts the values 4,3,45 it should be 004:03:45.
Please guide me to that, I tried with string.Format("{0:000}:{1:00}:{2:00}",ht,mt,st)
but it's not working, can I also use TimeSpan to achieve the same ?