Qtp Script to display Time in different formats-VB Script to display Time in different formats

Qtp Script to display Time in different formats

Dim a
a=FormatDateTime(Now(),vbLongTime)
MsgBox(a)

Output-4:33:08 PM



Dim a
a=FormatDateTime(Now(),vbShortTime)
MsgBox(a)

Output-16:33

No comments:

Related Posts Plugin for WordPress, Blogger...