Else If ct = -155 Then
Log("ct=-155, " & jrs.RunMethod("getObject", Array(i + 1))) ' Add this log statement to see what is being returned. Should call the object's toString method
'Retrieve a microsoft.sql.DateTimeOffset object and from it retrieve a java.sql.Timestamp
'https://docs.microsoft.com/en-us/sql/connect/jdbc/reference/datetimeoffset-members?view=sql-server-ver15
Dim SQLTime As JavaObject = jrs.RunMethodJO("getObject", Array(i + 1)).RunMethodJO("getTimestamp", Null)
Log("SQLTime=" & SQLTime)
If SQLTime.IsInitialized Then
row(i) = SQLTime.RunMethod("getTime", Null)
Log(row(i)) ' Added log of end result for datetime ticks
'Log(SQLTime.RunMethod("getMinutesOffset", Null))
Else
row(i) = Null
End If