How to get system date in QTP

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

Real life Scenarios where you will be using this function is ->
  1. 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.
  2. Date function is also useful to store your QTP results in date wise folders. This is used while designing the QTP framework.