I have a datagrid on my web form and I have populated it with the following
code:
Dim strConn As String
Dim strSQL As String
strConn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=D:\Test\ MyDatabase.MDB; "
strSQL = "Select client, newstarttime, newendtime, ccode from
EventTable WHERE client <> '' ORDER BY client"
Dim cnn As New OleDbConnection (strConn)
Dim cmd As New OleDbDataAdapte r(strSQL, strConn)
Dim ds As New DataSet
cmd.Fill(ds, "EventTable ")
DataGrid1.DataS ource = ds
DataGrid1.DataB ind()
-----------------------------------------------
Question: How can I format the newstarttime and the newendtime fields to
just show time.
in the table, they are defined as Date/Time fields.
Thanks,
Gary
code:
Dim strConn As String
Dim strSQL As String
strConn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=D:\Test\ MyDatabase.MDB; "
strSQL = "Select client, newstarttime, newendtime, ccode from
EventTable WHERE client <> '' ORDER BY client"
Dim cnn As New OleDbConnection (strConn)
Dim cmd As New OleDbDataAdapte r(strSQL, strConn)
Dim ds As New DataSet
cmd.Fill(ds, "EventTable ")
DataGrid1.DataS ource = ds
DataGrid1.DataB ind()
-----------------------------------------------
Question: How can I format the newstarttime and the newendtime fields to
just show time.
in the table, they are defined as Date/Time fields.
Thanks,
Gary
Comment