how to write regular expression for Date field?

Answer Posted / raghu

To apply Regular expression for Date we have to split months
1) [0][1-9] because it accepts 01,02,...09 as months

2) [1][1-2] and this is for 10th,11th, 12th months

Now The Regular expression for whole date format is as follows

Example MM/DD/YY

[0][1-9][/][0-9][0-9][/][0-9][0-9] for 1 to 9 months
[1][1-2][/][0-9][0-9][/][0-9][0-9] for 10 to 12 months

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1732


What is a recovery scenario?

567


What are the different ways to invoke an application using QTP?

640


Explain the concept of object repository and how quicktest professional recognises objects?

556


What do you to script when objects are removed from application?

609






What is Distributed testing? How does UFT support it?

604


Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)

1548


How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

2750


how to idetfy which test cases are automated?who will deside that plz tell me

1532


What is the use of ordinal identifier in qtp?

603


write script for bitmap image?

1534


How do you know the location Id of an object if you know its index id?

586


What is system testing and what are the different types of tests you perform in system testing?

593


Did QTP prove efficient for your project? Yes or No, explain?

6117


What is action?

571