Microsoft Logo

Microsoft SQL Sample Code

SQL for Displaying a Birthdate as Years/Months

This sql script is very useful for displaying the number of years and months of a specific date - such as a birthdate. The code below will show you how to accomplish that.

A sample call to this function would be: Select dbo.AgeMonths('4/29/74')
which would return: X Years X Months

If you need any help implementing this sql or modifications made for your needs, please Click Here to get a free quote for your Microsoft SQL Development needs. 

Click Here to learn more about the WSI quoting process.

About Us

WSI is a small business and a leading provider of custom SQL Server/Azure programming and database solutions for government entities, Fortune 1000 companies, and emerging businesses. We are your custom SQL Server/Azure development experts.