Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/02/2010, 15:40
Avatar de gnzsoloyo
gnzsoloyo
Moderador criollo
 
Fecha de Ingreso: noviembre-2007
Ubicación: Actualmente en Buenos Aires (el enemigo ancestral)
Mensajes: 23.324
Antigüedad: 16 años, 5 meses
Puntos: 2658
Respuesta: Fechas y formato (pregunta clásica a la que no encuentro respuesta...)

Es muy básico:
Código vb.net:
Ver original
  1. dtpNacimiento.Value.ToString("yyyy-MM-dd")
En cuanto a los TextBox, no puedes usar "+" con ellos, sino con su valor, es decir la propiedad .Text:
Código vb.net:
Ver original
  1. Dim comando As New SQLite.SQLiteCommand("INSERT INTO CLIENTES (nombre, apellido1, apellido2, sexo, fechanacimiento, fechaingreso, telefono, movil, correoe, domicilio, poblacion, provincia, cp, pais, especialidad) VALUES ('" + _
  2. txtNombre.Text + "', '" + txtApellido1.Text + "', '" + txtApellido2.Text + "', '" + _
  3. sexo.Text + "', '" + fechaNacimiento + "', '" + fechaIngres.Texto + "', '" + _
  4. txtTelefono.Text + "', '" + txtMovil.Text + "', '" + txtCorreoe.Text + "', '" + _
  5. txtDomicilio.Text + "', '" + txtPoblacion.Text + "', '" + txtProvincia.Text + "', '" + _
  6. txtPais.Text + "', '" + cbEspecialidad.SelectedItem + "')", conexion)
__________________
¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores constantemente...
"El problema es la interfase silla-teclado." (Gillermo Luque)