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 A TEST STRATEGY & WHAT IS THE DIFFERENCE BETWEEN TEST STRATEGY & TEST PLAN?

21 Answers   ABM, AZTEC, CTS, Infosys, Nihilent, Orange,


I want to open a GOOGLE page without recording a test in QTP.Can any one answer me?

4 Answers   IBM,


how to recall a function in QTP?

3 Answers   Ordain Solutions,


How to make arguments optional in a function?

2 Answers   Crea,


How to test login page by using QTP

6 Answers  






how to get no.of non empty rows in a excel sheet through vb-script

2 Answers   HP,


What is the difference between a Function and Action in QTP?

0 Answers   Wells Fargo,


What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........

10 Answers   ADP, AZTEC,


Which line will be executed 1-B(DP).P(OR.link(DP) 2-B(OR).P(Or).Link(DP)

2 Answers   Broadridge,


What is the basic concept of quicktest professional (qtp)?

0 Answers  


Can anybody give the script of below things. 1. Add sheet 2. Adding columns 3. Set the values in that columns(In the rows) 4. Close the sheet 5. How can we create 3 sheets in one Excel sheet??

2 Answers   TCS,


What is qtp window?

0 Answers  


Categories