Automation testing QTP with VB Script functions Interview questions


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

YearFunction?

Year function returns a whole number representing the year.

Syntax: Year(date)

Arguments:
date: Any expression that can represent a date. If date contains Null, Null is returned.

Example:  

'Year 
Print  Year("11-01-2010")                                        
output:2010
Print  Year("11/1/2010")                                                
output:2010
Print  Year("November 01, 2010")                            
output:2010

 




Next 5 interview question(s)

1
HourFunction?
2
Minute Function?
3
SecondFunction?
4
NowFunction?
5
TimeSerial Function?

Comments