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


Quizas
LcFecha = dtos(LcFechaReal)

o

LcFecha = ttoc(LcFechaReal, 1)

o

LcFecha  = LcFechaReal
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform