NervousRex
Programmer
I am trying to return some data from a MySQL database, I am having trouble reading one of the columns though...
The columns datatype is set as Time.
When I read it through the datareader, it is of TimeSpan type. If I do a myDR("time").tostring it gives me 00:00:00 for every row.
My question is, how can I get this column to display correctly as hours:mins:secs?
The columns datatype is set as Time.
When I read it through the datareader, it is of TimeSpan type. If I do a myDR("time").tostring it gives me 00:00:00 for every row.
My question is, how can I get this column to display correctly as hours:mins:secs?