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
What is Port testing. Whhen will you perform?
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
Difference between copy to action and call to action?
How to carry out bit map check points in QTP
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
How many lines of code in each script of QTP?
When ‘option explicit’ keyword is used in qtp?
what is keyword driven testing in qtp?n how is it useful?
Hi,All How to create a link in excel sheet using qtp
How many types of object repository in qtp?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
Explain advantages and disadvantages of ddf?
What does mean by Scope of Automation?n How we defined it?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..