how to write regular expression for Date field?

Answers were Sorted based on User's Feedback



how to write regular expression for Date field?..

Answer / saurabh mishra

For MM/DD/YYYY

format would be

[0-1][0-2]/[0-3][0-1]/200[0-9]

For DD/MM/YYYY

format would be

[0-3][0-1]/[0-1][0-2]/200[0-9]

and let me assure you that it is correct.

Is This Answer Correct ?    3 Yes 19 No

how to write regular expression for Date field?..

Answer / angel

For example: 03/12/07
For that you have to write like,
[0-9][0-9]/[0-9][0-9]/[0-9][0-9]

Is This Answer Correct ?    4 Yes 28 No

Post New Answer

More QTP Interview Questions

After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?

6 Answers  


tell me abt a time when u had to go above &beyind the call of duty to get the job done

0 Answers  


How software tester can use constants and variables in scripts?

0 Answers  


What is keyword driven Testing Framework. Anybody can explain it in details... Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,


In qtp,how to interact tool & application build?

1 Answers  


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

0 Answers  


when u script reveiwing in which area u more concentrates?

0 Answers   IBM,


Explain xml checkpoints.

0 Answers  


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

0 Answers  


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

0 Answers  


How to find the difference between 2 dates in qtp?

0 Answers  


difference Between LowLevel and Normal Recording Modes?

4 Answers  


Categories