Qtp script to return year from specified date-vbscript year function-script in qtp to display year from specified date-scripts in qtp-vbscript

Returns a whole number representing the year

Dim a

a=Year(Now)

Msgbox a


Output-2011



Dim a

a=Year("June 16, 2020")

Msgbox a


Output-2020

No comments:

Related Posts Plugin for WordPress, Blogger...