Results 1 to 3 of 3

Thread: Compare times

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    53

    Unhappy Compare times

    Hi guys,

    Does anyone know how to compare times?

    I need to check if a file was received at or around 2 AM.

    As always, thanks for any suggestions or help.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    You'll need the format function to make them the same look the same. Here are some examples :

    VB Code:
    1. MyStr Format(Time, "Long Time")
    2. MyStr = Format(MyTime, "h:m:s") ' Returns "17:4:23".
    3. MyStr = Format(MyTime, "hh:mm:ss AMPM") ' Returns "05:04:23 PM".


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    use the DateDiff function

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