Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CTOD() over Visual Foxpro ODBC Driver
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Using CTOD() over Visual Foxpro ODBC Driver
Miscellaneous
Thread ID:
00462058
Message ID:
00462058
Views:
148
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
Reply
Map
View

Click here to load this message in the networking platform