Is there any method to get the gap between 2 dates? I need to track the Age of particular person comparing with Current date.
I could get the data by comparing Year\Month\Day. The code also little bit lengthy.
Thanks in Advance
You can use the datediff function which will either return the no of days/weeks between two dates. With this i think you can calculate the age based on the output from datediff function.
You can find more details from QTP help if you type datediff and then hightlight it and select F1 function key.
i have never seen bugs sleeping
Thanks to you both...Now it's working fine. [img]/images/graemlins/smile.gif[/img]