Got this from stackoverflow site... I didn't bother trying it or anything...
Once you have that, I would just format it usingCode:int hours = (int)hoursDecimal; decimal minutesDecimal = ((hoursDecimal - hours) * 60); int minutes = (int)minutesDecimal; int seconds = (int)((minutesDecimal - minutes) * 60);
Code:String.Format("{0}:{1}.{2}", hours, minutes, seconds);




Reply With Quote