Results 1 to 3 of 3

Thread: Determining 2pm?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Question Determining 2pm?

    Can someone please tell me how to figure out if the current date and time is greater than 2pm today?

    I noticed that the hour property of the datetime just gives me the number 2. That doesn't tell me if it is PM or AM.

    Thanks

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    Never mind I got it.

    Code:
    If Now.TimeOfDay.Hours > 13 Then
    
    End If

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Originally posted by jesus4u
    Never mind I got it.

    Code:
    If Now.TimeOfDay.Hours > 13 Then
    
    End If
    Minor detail. That's greater than 1.00pm
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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