c# - Format a TimeSpan string -


in code have :

gvrankings.datasource = rankings.orderby(rg => rg.swimtime).take(100).toarray();   gvrankings.databind();   

(swimtime here timespan)

at frontside have

< asp:templatefield headertext="tijd" itemstyle-cssclass="time" headerstyle-cssclass="smallheader"> < itemtemplate><%# ("swimtime")%>< /itemtemplate> < /asp:templatefield> 

i format swimtime hh:mm:dd.ff have (after 2 hours of trying) absolutely no idea how this.....

string.format("{0:hh\\:mm\\:dd\\.ff}", yourtimespan)


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -