How can I convert SQL time using a datetime stamp to milliseconds. I am doing a highstock chart using VB.Net
这是我迄今为止的甄选守则。
Dim mydatalist As New List(Of XyData)
Dim sqlReader As SqlDataReader
Dim strConn As New SqlConnection(ConfigurationManager.ConnectionStrings("myCipConnection").ConnectionString)
Dim strSql As String = "SELECT TOP 1000 DATEDIFF(second,{d 1970-01- 01 },dtmStamp)AS dtmStamp ,dblReturnTemp FROM tblCIPEventData "
Dim sqlCmd As New SqlCommand(strSql, strConn)
strConn.Open()
sqlReader = sqlCmd.ExecuteReader
<><><>>I>有一套甄选<>/strong><>>>。
Dim strSql As String = "SELECT TOP 1 dtmStamp ,dblReturnTemp FROM tblCIPEventData"
The result looks like
2009-10-22 11:29:31.513
<><>>>> 我怎么能将这种信息转换成微秒。