Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manejo de fechas
Message
From
20/11/2011 09:21:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Manejo de fechas
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01529310
Message ID:
01529310
Views:
91
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
Map
View

Click here to load this message in the networking platform