我有这样的代码:
Dim starttime As TimeSpan = fromtimepicker.Value.TimeOfDay
Dim endtime As TimeSpan = TotimePicker.Value.TimeOfDay
我尝试像这样更新我的表:
Dim sqlcmd As String = "update Location_tbl set StartTime='" & starttime & "' ,EndTime='" & endtime & "'
但错误是这样的:
operator & is not defined for types 'string' and system.timespan
我该如何解决这个问题