Results 1 to 6 of 6

Thread: check time - hour and minute only - new problem

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    83

    check time - hour and minute only - new problem

    Hi,

    How can I validate a time to ensure that the hour and minute are not of the past.

    I tried someting lile this

    Code:
    (dtpFrom.Value.TimeOfDay) < (DateTime.Now.TimeOfDay)
    but this is also looking at seconds. I want to check only whether the hour and minute is of the past and not the seconds.

    Any help
    Last edited by sunshine123; Apr 16th, 2007 at 11:24 AM. Reason: new problem

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