Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TIME from DATETIME()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01025859
Message ID:
01025911
Views:
17
>>Hey Gurus....
>>
>>My mind is slipping in my old age.
>>
>>What is an easy(?) way to get the TIME component out of a DATETIME value (store the TIME part to a string variable)?
>>
>>Thanks!
>
>?TTOC(DATETIME(),2)
>But in help:
>
>
>2
>
>Specifies that TTOC( ) return a Character string consisting of only the time portion of the DateTime expression. The settings of SET SECONDS and SET DATE specify if the seconds portion of the time is included in the character string. Note that if SET DATE is set to LONG or SHORT, the format of the character string is determined by the format of the Control Panel time setting.

Thanks for the info!!
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform