Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting exact datetime form sql database table
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01018497
Message ID:
01018498
Views:
11
Hi Hans,


You must convert SQL datetime to string with ms:
CONVERT(char, datetime_field, 21)

MartinJ

>Hey all,
>
>I've got an sql table containing a datetime field yyyy-mm-dd hh:mi:ss.mmm. When I do a query form VFP I get the datetime in format yyyy-mm-dd hh:mi:ss but now I realy need to get the milliseconds too. Is there a way ??
>
>Greetz,
>Hans
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform