Starting today, Saket is kicking off a series of posts on the DotNetFactory object in QTP.
https://www.learnqtp.com/dotnetfactory-qtp-part1-basics/Example 1
- Dim SystemDate , oDate
- Set SystemDate = Dotnetfactory.CreateInstance("System.DateTime")
- Set oDate = SystemDate.Parse("Fri, 9 Oct 2009")
-
- FormattedDate = oDate.Day & "/" & oDate.Month & "/" & oDate.Year
-
- msgbox FormattedDate
-
- Set SystemDate = Nothing
- Set oDate = Nothing