I am trying to instruct QTP to pick a date, that is 2 days ago to System Date. Is there any function in VBScript to obtain this Previous date value?
Thanks In Advance.
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
you can also use
msgbox DateAdd("d",-2, Date)
BTW , Tarun you don't need the Brackets
msgbox Date-2 works fine.
"I realize it's an error, but no one is going to try to do that!"
From "Top 10 Stupid Comments from Developers".
Actually i just confirmed it in a VB debug window before posting, so used (), i know it only needed if we want the return value from the function.