Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function DTOC() on a TIMEDATE...
Message
From
03/01/2001 11:47:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Function DTOC() on a TIMEDATE...
Miscellaneous
Thread ID:
00458961
Message ID:
00458961
Views:
73
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.
Next
Reply
Map
View

Click here to load this message in the networking platform