Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL datetime --> VFP date in a query
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00630844
Message ID:
00630868
Views:
20
>Hallo all
>I wonder if somebody have a solution on a dateproblem.
>I want the datepart of a datetimefield from an SQL server.
>Something like this:
>
>select "datepart of a datetimefield" as "datefield" from MySQLtable
>
>I hope you understand my question, I have looked everywhere for a simple solution on this.
>Of course I can convert the datetimefield in VFP later, after the SQL query is done, but are there some way to do the convert direct in the query.
>
>Thanks in advance
>/Kjell

Isn't DATEPART T-SQL function appropriate for your need?
Venelina Jordanova

Outsourcing IT Services Ltd.
Previous
Reply
Map
View

Click here to load this message in the networking platform