Automation Testing
Quick Test Professional.
Tuesday, May 25, 2010
Compare the Two Date
Dim MyDate, MySysDate
MySysDate = Date
MsgBox MySysDate
MyDate = "January 11, 1981"
MyReturn = CDate(MyDate)
MsgBox MyReturn
StrDateCompare = DateDiff("yyyy", MyReturn, MySysDate)
MsgBox StrDateCompare
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment