Automation testing QTP with VB Script functions Interview questions


Total available count: 68
Subject - Software Testing
Subsubject - Automation testing QTP with VB Script functions

DateAddFunction?

DateAdd function  rturns a date to which a specified time interval has been added. 

Syntax: DateAdd(interval, number, date)

Arguments:
interval: (Required) String expression that is the interval you want to add. See Settings section for values.
number:    (Required) Numeric expression that is the number of interval you want to add. The numeric can either be positive, for dates in the future, or negative, for dates in the past.  
 date: (Required) Variant or literal representing the date to which interval is added.

Example:  

'DateAdd 
Print  DateAdd("yyyy",1,"November 01, 2010")                
Output:11/1/2011

 




Next 5 interview question(s)

1
DateDiffFunction?
2
DatePart Function?
3
DayFunction?
4
Month Function?
5
MonthName Function?

Comments