How can we add regular expression for date field
(dd/mon/yyyy)?

Answers were Sorted based on User's Feedback



How can we add regular expression for date field (dd/mon/yyyy)?..

Answer / vengi

Open Object Repository
and selsct value ,
click on constant value,
it displays on edit box with Regular Expressionchecbox,
select check point
and enter values
For example: for data field(DD/MM/YYYY)
RE:[0-3][0-9]/[0-1][0-2]/[0-2][0-9][0-9][0-9]

Is This Answer Correct ?    11 Yes 11 No

How can we add regular expression for date field (dd/mon/yyyy)?..

Answer / 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

How can we add regular expression for date field (dd/mon/yyyy)?..

Answer / shivani

for dd/mon/yyyy format--> [0-3][0-9]/[a-z]|[A-Z]/[a-z]|[A-
Z]/[a-z]|[A-Z]/[0-2][0-9][0-9][0-9]

Is This Answer Correct ?    8 Yes 13 No

Post New Answer

More QTP Interview Questions

What is qtpro? What is quick test pro?

0 Answers  


What is difference between the For..Next and While..Wend statements?

2 Answers  


VB scrip has a special command named LBound, which returns the starting index of an arry. What are the possible indexes an array can start with? options are given below. and one only the correct answer. pl select it 1. any index 2. only even non-negative 3. only 0 4. any non-negative integer

1 Answers  


i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com

0 Answers  


Whenever we r keeping mouse pointer under the image we r getting image name. In qtp how can we do this thing.weather that name is coming or not?

5 Answers  






What is parameterization? What is syncronization pt.?

3 Answers   Semantic Space, SRM,


what is mercury.clipboard in qtp.where we can get this in qtp tool i.e tabs

1 Answers  


pls guys understand this is question CAREFULLY,,, interviwer asks can u write test case for ATM m/c..i told, insert card enter pw...like this,,but interviwer not happy with that...ur not going to atm center? in ur office system ur testing ATM M/c...why ..how to test? what is the process?

1 Answers   Accenture,


How to Test the mainframe application?(tell me few basic things)

3 Answers  


what is automation(qtp)bug pls giv me one ex?

1 Answers  


What is the parameterization?

0 Answers  


How do function returns a value?How can we pass one function value to other function as input

3 Answers  


Categories