How to determine his/her age by using 2 datepicker? using vb.net?

Discussion in 'Visual Basic ( VB )' started by hsei99, Nov 2, 2010.

  1. hsei99

    hsei99 New Member

    Joined:
    Oct 17, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i have 2 date picker and 1 button.

    i want to create a age calculation.i put my year of birth in 1 datepicker and other
    2datepicker is the date today.

    when i click button msgbox will appear and said

    "YOUR AGE IS 18years 1months and 2 days"

    i want that output please help me
     
  2. virxen

    virxen Active Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    28
    use datediff function
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice