Results 1 to 2 of 2

Thread: date manipulation question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Hi,

    This should be a simple one for you seasoned professionals out there...

    I have the following code:

    EndTime = DateAdd("s", TimeOut, Now)

    That returns:

    08/25/2000 4:18:08 PM

    What I then need to do is to convert EndTime into an Integer and so that it only shows the 2 digit seconds, such as:

    08

    Thanks in advance!

    Dan

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374
    Use the Second function
    Code:
    Dim MyTime As Integer
    
    MyTime = Second(EndTime)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width