【发布时间】:2011-08-04 19:09:31
【问题描述】:
首先感谢大家的帮助!!!
我要做的只是获取一些在 SSRS 2005 中工作的 VB.net 代码,以将 123465 显示为 34:17:45。
这是我迄今为止尝试过的:
Public Shared Function secondsToString(seconds As int64) As String
Dim myTS As New TimeSpan(seconds * 10000000)
If seconds > 0 then
Return String.Format("{0:00}:{1:00}:{2:00}",myTS.Hours, myTS.Minutes, myTS.Seconds)
Else
Return ""
End if
End Function
您能提供的任何帮助都会很棒!
再次感谢!
【问题讨论】:
-
添加到问题中,谢谢!
标签: vb.net timestamp ssrs-2008 reportingservices-2005 reporting-services