Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetime2character
Message
From
06/01/2001 15:35:31
 
 
To
06/01/2001 09:40:25
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00460191
Message ID:
00460242
Views:
14
>Cemal,
>
>To convert datetime() to a character expression use the TTOC function.
>
>Ex. x=ttoc(datetime())
>
>You could then simply use string functions to pull out the specific values you want.

The TTOC() function has an option to extract just the time portion:
cTime = TTOC(DATETIME(),2)
And to get just the date portion, use DTOC():
cDate = DTOC(DATETIME())
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform