Hola a todos.
Estoy tratando de infresar fechas de VFP a SQLServer, pero no he podido hacerlo.
En un textbox, en el init le tengo: This,.value=date()
Luego, al grabarlo en SqlServer hago:
LcFechaReal = .container2.text2.value
LcAno = ALLTRIM(STR(YEAR(LcFechaReal)))
LcMes = ALLTRIM(STR(MONTH(LcFechaReal)))
Lcdia = ALLTRIM(STR(DAY(LcFechaReal)))
LcFecha = LcAno + '-' + LcMes + '-' + LcDia
Pero al ingresarlo al Sqlerver, me queda asi:
1905-05-30 00:00:00.000
que pasa?
Alguna idea?
Gracias a todos.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only