Convert TimeSpan from format “hh.mm.ss” to “hh.mm”

oxyncJoyday

New Member
I want to show in a TextBox only hour and minutes\[code\]var test = dataRow.Field<TimeSpan>("fstart").ToString(); //test ="08:00:00" var tb = (TextBox) gridViewRow.Cells[2].FindControl("fstart");tb.Text = test;\[/code\]how to show only hours and minutes \[code\]"hh.mm"\[/code\]
 
Back
Top