Java - como grabar fecha

 
Vista:

como grabar fecha

Publicado por carlof riffo (2 intervenciones) el 18/06/2008 17:29:36
COMO GRABO UNA FECHA DESDE UN TEXBOX, A UNA TABLA DE LA BASE DE DATOS,..,

AYUDA,.., AYUDA ,M, AYDUM,M,M,SOS...,
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:como grabar fecha

Publicado por mario (622 intervenciones) el 18/06/2008 18:23:47
tienes q usar JDBC con la interfaz

PreparedStatement

y el metodo setDate

public void setDate(int parameterIndex,
Date x)
throws SQLExceptionSets the designated parameter to the given java.sql.Date value. The driver converts this to an SQL DATE value when it sends it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException - if a database access error occurs

Saludos!!
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar