Results 1 to 3 of 3

Thread: Validating Date/Time on a Textbox/Combobox/Masked Edit Box

  1. #1

    Thread Starter
    Addicted Member cyberwarpy's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    200

    Question

    Does any genious out there know? Without using OCX controls or scripting references...?

    Like for e.g. "Day/Month/Year", some *stupid* users enter more than 31 days!?!
    Last edited by cyberwarpy; Feb 19th, 2001 at 09:21 PM.

  2. #2
    Guest
    What are you asking? You want to know if the date is a valid one?


    Code:
    MsgBox IsDate("2/31/01") 'returns false
    MsgBox IsDate("3/31/01") 'returns true
    2/31/01 = February 31, 2001 - not a real date
    3/31/01 - March 31, 2001 - real date

  3. #3

    Thread Starter
    Addicted Member cyberwarpy's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    200

    Question Reply...

    Yep. I just want to know whether they have entered a real(valid) date in the Masked Editbox. * This feature is not there in the Masked Editbox (M$ were meant to be smart... :-))

    Also, how would you do it for time in the format:

    ##:## (AM/PM)... ?!?

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