Micro Focus QTP (UFT) Forums
How to get the system time using QTP - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to get the system time using QTP (/Thread-How-to-get-the-system-time-using-QTP)



How to get the system time using QTP - qtplearner88 - 05-30-2012

Hi All,
Please help me in getting the system time using a script. Actually i have to get that time and pass that to a WebEdit field in my portal which I am testing.

Pls help me..

Please let me know if i have to give any other info.

Thanks
QTPLearner


RE: How to get the system time using QTP - ssvali - 05-30-2012

You can use inbuilt Function "Time()"

Ex:-
CurrentTime = Time()
Msgbox CurrentTime