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

unable to get item from the combobox using descriptive programing. can any one give me the peice of code to schedule the booking from one place to another using DESCRIPTIVE PROGRAMING.

1 Answers  


what is the difference between link and hyperlink?

10 Answers   Infosys,


In qtp, explain what is qrs file?

0 Answers  


What is difference b/w AOM,DOM,COM Have u ever is used ny of the models.If so why?

1 Answers   GE,


What is a runtime datatable ?

2 Answers   Ordain Solutions,






Mention what are the different types of recording modes in qtp? Which will be used when?

0 Answers  


How can you delete the results file (XML)

2 Answers  


when do we write a script in qtp?(plz give me more then 2 reasons)

1 Answers  


How to retrieve the data from database?

6 Answers   Wipro,


How to apporach while starting the automation testing?

3 Answers   Patni,


How to find the OS name by using QTP script?

2 Answers   IBM, Tech Mahindra,


what is stlc and its contents?

1 Answers  


Categories