If you're referring to a MySql Time column, please have a look here for its specifics.
Anyway, if you save time of day as hh:mm:ss in that column then you first have to read it back as a string and finally convert it by DateTime.TimeParse function which gives you the right number of ticks (date part is set to today). Only then you use functions to extract separately hours, minutes and seconds.
Beware of TimeFormat set in your app before parsing to avoid errors (it should be "HH:mm:ss" if that is what you read back from SQL).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.