Code for getting system date is given in below example.
print date.
Here date is the built in vbscript function which returns system date in QTP
Here date is the built in vbscript function which returns system date in QTP
Real life Scenarios where you will be using this function is ->
- Suppose you are working on the trading application. You need to calculate the settlement date.If you execute the order today, Trade date is today's date so you can use date function in this case.
- Date function is also useful to store your QTP results in date wise folders. This is used while designing the QTP framework.
Please find below more questions and answers on date and time in QTP.
- How to extract date part from timestamp in QTP?
- How to find the name of month of given date in QTP?
- How to extract time part from given date in QTP?
- How to extract the second part from given time stamp in QTP?
- Explain dateadd function in qtp with Example.
- How to find future date in qtp?
- How to get the system date in qtp?
- How to verify the date format in qtp?
- How to find the yesterday's date in qtp
- How to find the date difference in qtp
- How to get the current system date in qtp?
- How to get the current year in qtp?
- How to find the name of week day for given date in QTP?
- Explain now function in qtp.
- Explain the datediff function in qtp.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs