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


Please Help Members By Posting Answers For Below Questions

How to check bitmap output value?

629


What is the new version of qtp which is recently released in the market?

644


what is the difference between data driver & data driven and driver script?

2143


What is expert view in qtp?

590


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1326






How qtp recognizes the object?

673


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2269


Explain hybrid framework with advantages and disadvantages?

546


Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.

1448


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

869


What is qtpro? What is a quick test professional?

587


How will you check a web application for broken links using qtp?

554


What are the differences between quicktest professional (qtp) and winrunner?

574


Tell me about qtp?

542


What is difference between design time and run time data table?

587