Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

Here's what I'm using.

 

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

 

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...