Date Validation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Iki
    New Member
    • Jun 2007
    • 1

    #1

    Date Validation

    I have 3 combo boxes which are populated from SQL Database.
    Days Combo: 1-31, Months Combo:Jan, Feb,Mar....Dec and Year Combo:1930, 1931.....2007.

    The problem is that the user can select 31 for days then Feb from month which is obviously incorrect. I could write code to check for validation but i have similar days, month , year on another form and may be have some more. My question is that i want to create an object (class) that will handle this so that i can use it in other apps.

    Thanks
    Popperdums
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by Iki
    I have 3 combo boxes which are populated from SQL Database.
    Days Combo: 1-31, Months Combo:Jan, Feb,Mar....Dec and Year Combo:1930, 1931.....2007.

    The problem is that the user can select 31 for days then Feb from month which is obviously incorrect. I could write code to check for validation but i have similar days, month , year on another form and may be have some more. My question is that i want to create an object (class) that will handle this so that i can use it in other apps.

    Thanks
    Popperdums
    See the following example

    Nathan

    Comment

    Working...