Can any one help me to get Server date and time from QTP.
My webapplication is running in Linux server, I have to verify and date and time in my appliucation.
Thanks in Advance
you can use NOW Function.
NOW function will get the system date and time, where QTP is running.
Here i need to get the server date from another machine (QTP)
Ask the server :
set objXML = CreateObject("Microsoft.XMLHTTP")
objXML.open "GET", "http://www.myURL.com", False
Set objxml = nothing
Thank you very much.
One more query on this, If the URL is secured one (https), its giving error message. is it possible to get date from secured server.
I have pasted the code given by Turbografx in expert view and changed the url but the print returned empty why???
The issue what you have listed does not exist, works fine in my machine- stupid comment from the developer
If you are using QTP, change that Print stmt to magbox or assign that value to any variable then you can use that