How can we add regular expression for date field
(dd/mon/yyyy)?
Answer Posted / samiran sil
"sDate" is the normal date-
sDay=Datepart("d",sDate)
sMonth = Datepart("m",sDate)
sYear = Datepart("yyyy",sDate)
If Len(sDay) = 1 Then
sDay = "0" & sDay
End If
If Len(sMonth) = 1 Then
sMonth = "0" & sMonth
End If
sDate = sMonth & "/" & sDay & "/" & sYear
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to run a test using quicktest professional (qtp)?
What is difference between shared and local object repository?
What is the purpose of loading qtp add-ins?
How many ways we can parameterize data in quicktest professional?
how to idetfy which test cases are automated?who will deside that plz tell me
Write a script to verify font style and color of a windows object using descriptive programming
How qtp identifies objects?
explain abt dyanamic changing object with example?
how to prepared for first for the first interview?
what is the hierarchy to use properties in descriptive programming
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
What are test settings and global settings?
What is smart identification in QTP?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
Explain actions in qtp ?