how can i find age of user when enter date like "23/03/1982" then age should be display in textbox using sql query.
actualy i want to find age using server date. by sql query....
how to implement using sql query...
below is my query how can i implement this query to vb6.0 project...
- select DATEDIFF(YEAR,CONVERT(datetime,'23/03/1993',103),CONVERT(datetime,GETDATE(),103))
Textbox2 is for age.

Kirtesh ShahPosted Apr 9, 2021, 7:08 AM
Bhavesh VankarPosted Apr 8, 2021, 9:01 AM
Bhavesh VankarPosted Apr 8, 2021, 8:56 AM
Kirtesh ShahPosted Apr 8, 2021, 8:49 AM
Bhavesh VankarPosted Apr 8, 2021, 7:07 AM
Kirtesh ShahPosted Apr 8, 2021, 6:58 AM
Do you need Age in decimal or round age? Based on the requirement use query in code.
Secondly, after executing
you need to read Recordset(objRs ) . Fetch the output and set to Textbox2.
Bhavesh VankarPosted Apr 8, 2021, 6:02 AM
Siddharth GajbhiyePosted Apr 8, 2021, 4:31 AM
Kirtesh ShahPosted Apr 7, 2021, 7:06 PM
Sachin SinghPosted Apr 7, 2021, 7:43 AM