What are the differrent date formats that can be set while using Winrunner?

Showing Answers 1 - 3 of 3 Answers

harpreetkaur02

  • Sep 22nd, 2007
 

WinRunner lacks some important date functions such as datediff(), day(), hour(), month(), and lacks different date formats. However using its built in functions time_str(), date_string_to_Julian(), there is possibility to get all other features. Here are examples of getting necessary date operations using WR custom date functions: Get current time in predefined format: now=date_from_WRtime('YYMMDDHHNN'); Get date shift (e.g. previous month) from current date: shifted_date=date_from_WRsecs('mm/dd/YY',date_diff('m',-1)); Get shifted date from another formatted date: shifted_date=date_shift(input_date,'DD/MM/YYYY HH:NN:SS',10,'D'); Get current weekday: weekday=date_from_WRtime('ddd');

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions