Hi,
I will provide perticular age,it needs to enter date in
text box (MM/DD/YYYY) compare to system date. or already
exist data in the text box.

Answers were Sorted based on User's Feedback



Hi, I will provide perticular age,it needs to enter date in text box (MM/DD/YYYY) compare to syst..

Answer / gangadhar

X=CDate(x) 'it will convert the date in the textbox
y=now()
msgbox Datediff(YYYY,x,y)

Is This Answer Correct ?    0 Yes 0 No

Hi, I will provide perticular age,it needs to enter date in text box (MM/DD/YYYY) compare to syst..

Answer / madhavi

Get the entered data of text box into a variable "x"

Datediff(yyyy,x,now) will return the age.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

What is iteration? How it is related to Test Results in QTP

3 Answers   Virinchi Technologies,


Hi All, How to Compare two strings character by character in QTP

0 Answers  


If there r 1000 test scripts that were written. If a change to any functionality is to be made then how can we know in which script is this functionality existing.

4 Answers   iGate,


Tell me about userdefined functions ?

1 Answers  


. Types of properties that Quick Test learns while recording?

2 Answers  


How you debug your script?

0 Answers  


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.

0 Answers  


What is the difference between the keyword view and expert view?

0 Answers  


Explain in brief about the qtp automation object model (aom).

0 Answers  


IF we use batch testing.the result shown for last action only.in that how can i get result for every action.

2 Answers  


Can a function return a dictionary object?

2 Answers   CG, Semantic Space,


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

0 Answers   IBM, TCS,


Categories