Micro Focus QTP (UFT) Forums
Entering previous and Future dates - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Entering previous and Future dates (/Thread-Entering-previous-and-Future-dates)



Entering previous and Future dates - uma87 - 03-30-2012

Hi,

I have 2 scenarios where i have to enter Future Date and Past date

My application has a weblist to select month, another weblist to select Day. Based on Todays date i should enter a future Date and a past date. When ever i run the test It should use todays date and enter the required dates.

I'm using the below script
Dim MyDay
MyDay = Day(Date+1)
.WebList("Date").MyDay
wait 3

My day is giving a Correct Value When put in message Box, But the Weblist Isn't selecting that Value.
How should I proceed ?
A Calender Image is also present but, QTP is recognizing as webTable.How can i Use Calender?

Please see the Attchment/Snapshot for the Clear idea.


RE: Entering previous and Future dates - vinod123 - 03-31-2012

use descriptive programing i have to work out and i will be back with it by using dp you can solve it