Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using CTOD() over Visual Foxpro ODBC Driver
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Using CTOD() over Visual Foxpro ODBC Driver
Divers
Thread ID:
00462058
Message ID:
00462058
Vues:
149
Consider the following select statement sent from ASP (via the Visual Foxpro ODBC driver) on a table containing a field that stores date values as a string:

strQuery = "SELECT build, CTOD(build) buildasdate FROM project"
SET objRecordSet = objConn.Execute(strQuery)

A sample result set is as follows

build buildasdate
01/01/1998 01/01/1998
01/02/2000 01/02/2000
17/05/2000 NULL

Correct me if I'm wrong but the obvious explanation of the NULL value appearing is that CTOD is interpreting the date string as mm/dd/yy.
Is it possible for CTOD to interpret date strings dd/mm/yy?

I would also be interested to know how CTOD works over ODBC.

Thanks in advance
Répondre
Fil
Voir

Click here to load this message in the networking platform