locked
how to check date in MaskedTextBox? RRS feed

  • Question

  • hi all

    i want to control MaskedTextBox by this code but it is not normal code ...

    if txtBirthday.Text <> "    /  /"   Then ...

    if txtBirthday.Text = Nothing   Then ...

    if txtBirthday.Text <>"0000/00/00"  Then ...

    but its not work properly 

    how to control date

    please help me

    thanks


    Name of Allah, Most Gracious, Most Merciful and He created the human

    Friday, October 12, 2012 8:37 AM

Answers

  • Use If IsDate(CDate(TxtBirthday.text))=False then


    Art Of Living Is Art Of Giving


    • Edited by Pratush Krishna Friday, October 12, 2012 12:51 PM
    • Marked as answer by Youen Zen Tuesday, October 23, 2012 10:17 AM
    Friday, October 12, 2012 12:50 PM