Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Compare Time

  1. #1

    Thread Starter
    Fanatic Member Loraine's Avatar
    Join Date
    Aug 2006
    Location
    8ft. underground
    Posts
    581

    Resolved [RESOLVED] [2005] Compare Time

    I made some code that will check if the time is already pass or not. But looks like this is illogical code that i made.

    Code:
    Dim el As TimeSpan = Now.TimeOfDay
            If el.Hours = 10 Or el.Hours = 11 Then
                If el.Minutes >= 50 Or el.Minutes <= 55 Then
                    MessageBox.Show("You were at range of 10:50 AM to 10:55 AM")
                Else
                    MessageBox.Show("You Early/Late")
                End If
            End If
    How can i compare a the time string and the time of the computer ?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] Compare Time

    Does the code here help?

  3. #3

    Thread Starter
    Fanatic Member Loraine's Avatar
    Join Date
    Aug 2006
    Location
    8ft. underground
    Posts
    581

    Re: [2005] Compare Time

    Thanks Hack ... well i post my answer on the other thread that i made. Hope it will help . Thanks again

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