QTP Script to display date in different formats
Dim a
a=FormatDateTime(Date(),vbGeneralDate)
MsgBox(a)
Output-8/8/2012
Dim a
a=FormatDateTime(Date(),vbLongDate)
MsgBox(a)
Output-Wednesday, August 08, 2012
Dim a
a=FormatDateTime(Date(),vbShortDate)
MsgBox(a)
Output-8/8/2012
QTP Script to display date in different formats-VB Script to display date in different formats
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment