Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing SQL-INSERT via ADO is producing incorrect dates
Message
From
29/05/2003 11:28:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/05/2003 11:03:39
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00793950
Message ID:
00793965
Views:
35
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>When I pass an INSERT-SQL like "INSERT INTO Table (DateField) VALUES ({15/01/2003})" via ADO Connection, VFP always places the date into the table as an American style format.
>
>I have SET DATE TO British set via the DBC OpenData event, what else can I do?
>
>Thanks
>Kev

Kevin,
Use strictdate format :
"INSERT INTO Table (DateField) VALUES ({^2003/01/15})"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform