Micro Focus QTP (UFT) Forums
sysdate in the qtp script - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: sysdate in the qtp script (/Thread-sysdate-in-the-qtp-script)



sysdate in the qtp script - karraaruna - 01-31-2011

how to get the sysdate or current date in the QTP script programatically.

Thanks.


RE: sysdate in the qtp script - manishbhalshankar - 02-01-2011

Hi Karraaruna,

In QTP you can get the current system date using the "Date" function.

Code:
MsgBox Date



RE: sysdate in the qtp script - Rohan - 02-01-2011

QTP supports VB Script, We have a Built-in function in VB,
"Date" function fetches current/system date..

Thanks.
Rohan.