Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT cursor question
Message
 
 
To
16/02/2001 11:22:57
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00476388
Message ID:
00476669
Views:
26
>>>>Is there a way to convert datetime to date fields in SPT cursor?
>>>
>>>Would TTOD() do what you want?
>>>
>>>SELECT TTOD(tMyDateTime) AS dMyDate...
>>
>>You can only use functions that the back end will understand for SPT. I think CONVERT() may be what's needed here.
>
>Thanks. Low on brain power here. Is CONVERT() a T-SQL command? I usually use the ANSI CAST or EXTRACT.

PMFJI, but yest it is. It has the same basic functionality as CAST(). It's more akin to the VFP Transform() function because you can also pass a formatting parameter when converting from datetime or money to character (or one of its derivations varchar, nchar, etc.) and get different results.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform