FileDateTime Question

bjwade62

Centurion
Joined
Oct 31, 2003
Messages
104
I can use FileDateTime("c:\temp\document.log") to retreive the date and time down to the seconds. That's the problem, I don't want it down to the second. Is there some sort of a trim method or function I can use to cut the seconds out?

Thanks,
Bernie
 
What code are you using to format the string? If none of the built in formats are suitable use the information on the page linked by Gill to build your own custom format.
 
Here's what I'm using.

Dim dDate As String = Format(FileDateTime(SelFileName), "MM/dd/yyyy hh:mm")

PlausiblyDamp said:
What code are you using to format the string? If none of the built in formats are suitable use the information on the page linked by Gill to build your own custom format.
 
Back
Top