最初由 Scholes05 发布
[B]怎么才能在vb.net中 调用系统时间啊?
我用sql的语句getdate() 在vb.net中总是不行 [/B]
怎么不行啊?我试了可以的
Dim con As New SqlClient.SqlConnection
Dim com As New SqlClient.SqlCommand
con.ConnectionString = "............."
con.Open()
com.CommandText = "select getdate()"
com.Connection = con
Label5.Text = CStr(com.ExecuteScalar)
con.Close()