Guest User

Untitled

a guest
Jun 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub Form_Load()
  2. If IsDate("05/12/1961") Then
  3.     MsgBox "Tienes: " _
  4.          & Int(DateDiff("d", "05/12/1961", Date) / 365.25) _
  5.          & " años!"
  6. Else
  7.     MsgBox "Formato correcto es: mm/dd/yyyy"
  8. End If
  9. End Sub
Add Comment
Please, Sign In to add comment