---
title: "How to find out age of person in sql server?"  
description: "How to find out age of person in sql server?"  
author: "Pravesh Singh"  
published: 2012-09-15  
updated: 2012-12-07  
canonical: https://www.mindstick.com/forum/450/how-to-find-out-age-of-person-in-sql-server  
category: "mssql server"  
tags: ["mssql server"]  
reading_time: 1 minute  

---

# How to find out age of person in sql server?

Hello Guys,.\
I've suffering with a [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) since last night, actually I've a [date](https://yourviews.mindstick.com/story/3869/propose-day-2024-exciting-date-ideas-for-you-and-your-partner) of birth(DOB) of any person and I want to find out the current [age](https://www.mindstick.com/articles/23262/the-modern-age-these-technology-trends-can-make-your-life-easier) of that person but I don't have any idea about it. Can you tell how do this?\
\
Please [resolve](https://www.mindstick.com/forum/159427/windows-app-dll-not-found-resolve-library-issue) my problem.

## Replies

### Reply by Vijay Shukla

Hi, Mr. Pravesh Singh\
you can use simple query for solving your problem.

SELECT DATEDIFF(year,'1989-12-05',getdate()) 'Age'

Here DateDiff() is a Sql aggregate Function that will return difference between two dates, and getdate() method will return current system DateTime.

### Reply by Pravesh Singh

Post is removed by the Admin.

### Reply by Anonymous User

you can use datediff() function to find out age of person in sql server.


---

Original Source: https://www.mindstick.com/forum/450/how-to-find-out-age-of-person-in-sql-server

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
