I have a datetimepicker with the usual 24-hour format HH: mm: ss select only hours
then i declared mydtIncidentTime as DateAndtime
mydtIncidentTime = dttimepicker.Value.ToString("HH:mm:ss")
Im saving time only in 24 hour format for my saving time to mysql (mysql data type is TIME)
str_to_date('" & Me.mydtIncidentTime & "', '%H:%i%s')
source
share