Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert Date to SQL Server 2000 Format
Message
 
 
À
03/04/2003 07:16:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00773470
Message ID:
00773878
Vues:
9
>Hi,

>Is there a function i can use to convert a Datetime field in visual foxpro to the format used by Sql Server 2000

>i.e.
>Visual FoxPro Format : 03/04/2003 15:30:21
>Sql Format : 2003-04-03 15:30:21


How are you sending your datetime value?, by SPT you can use "?" for casting.
   lnCurrTime = DATETIME()
   SQLExec(lnConn,"SELECT iid,name from customer WHERE lastBuy>=?ldCurrTime")
HTH
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform