MySQL Forums
Forum List  »  MySQL for Visual Studio

Grabar hora en campo TIME
Posted by: Luis Eduardo Ortiz
Date: August 15, 2014 09:04AM

Buenos dias a todos.... estoy trabajando con Vb.net desde Visual Studio 2013, tengo un formulario que recibe una hora en un control DateTimePicker y quiero grabar esa hora en una tabla de MySql que es del tipo TIME.... El problema es que me da el siguiente error: "Fatal error encountered during command execution"... este es parte del codigo que utilizo:

Dim HoraEnviar As DateTime = CDate(Me.DTP_Horas.Value.ToString("HH:mm:ss"))


Dim HoraGrabar As String
HoraGrabar = HoraEnviar.ToLongTimeString

Me.RestriccionesentregasTableAdapter.Insertar(Me.TxtM_Descripcion.Text, _
HoraGrabar, DiasSemana, _
DateTime.Now, GlbUsuario)

Options: ReplyQuote


Subject
Views
Written By
Posted
Grabar hora en campo TIME
3680
August 15, 2014 09:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.