15 Ocak 2012 Pazar

Visual Bascic Doğu Gününden Kişinin Yaşını Hesaplama

Posted by Unknown On 00:21 No comments

'Text'i Date data türüne çevir

Dim Birth as Date
Birth = DateValue(txtDOB)

'Yasi hesapla
Dim Age as Integer
Age = Int(DateDiff("D", Birth, Now) / 365.25)

0 yorum:

Yorum Gönder