Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function DTOC() on a TIMEDATE...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00458961
Message ID:
00458962
Views:
25
>Hi,
>
>I used the function FDATE() to find out the modified date of a file I have on disk. I then converted this value to a character value using the function DTOC in order to pop this value in a messagebox to the user. My problem is that even when I use the optionnal argument (1) to the function FDATE() to have a TIMEDATE result, the conversion to a string only keeps the date and not the time portion of my variable. For example:
>
>?FDATE("c:\test.txt",1)
>> 10/10/2000 02:05:26 PM
>?DTOC(FDATE("c:\test.txt",1))
>> 10/10/2000
>
>How can I keep the entire value returned by FDATE (or any other function that returns a TIMEDATE value)?
>
>Thanks a lot in advance, Stephane.

Use TTOC() instead.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform