How to calculate a person’s age using C# and VB.NET

This code snippet can help you to calculate a Person’s age using C# and VB.NET.

C# Snippet

VB.NET Snippet

If you have any questions or suggestions feel free to rate this snippet, post a comment or Contact Us via Email.

Related links: DateTime Structure, DateTime Methods

working .NET 2.0
working .NET 3.0
not tested .NET 3.5
not working .NET 4.0
not working .NET 4.5