Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write the regular expression for date format of mm/dd/yy?

Answers were Sorted based on User's Feedback



write the regular expression for date format of mm/dd/yy?..

Answer / rajesh

[1-9]|1[0-2]/[1-9]|[1-2][0-9]|3[0-1]/19[0-9][0-9]|2[0-9][0-9][0-9]

More food for thought valid from 1900 to 2999.

Is This Answer Correct ?    13 Yes 0 No

write the regular expression for date format of mm/dd/yy?..

Answer / rajesh

Pavani your point is correct

Here is the format for the input.
MM will be 1 to 12 "[1-9]|1[0-2]"
DD will be 1 to 31 "[1-9]|[1-2][0-9]|3[0-1]"
YY will be "[0-9][0-9]"

Hence MM/DD/YYYY will be
"[1-9]|1[0-2]/[1-9]|[1-2][0-9]|3[0-1]/[0-9][0-9]"

Is This Answer Correct ?    10 Yes 5 No

write the regular expression for date format of mm/dd/yy?..

Answer / hetal

Regular experession can also be written in qtp as follow:
(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d

Is This Answer Correct ?    2 Yes 0 No

write the regular expression for date format of mm/dd/yy?..

Answer / falak

^(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d$

Is This Answer Correct ?    3 Yes 2 No

write the regular expression for date format of mm/dd/yy?..

Answer / pratap

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

Is This Answer Correct ?    3 Yes 3 No

write the regular expression for date format of mm/dd/yy?..

Answer / lak

^([1-9]|0[1-9]|1[0-2])[- / .]([1-9]|0[1-9]|1[0-9]|2[0-9]|3
[0-1])[- / .](1[9][0-9][0-9]|2[0][0-9][0-9])$

Is This Answer Correct ?    0 Yes 0 No

write the regular expression for date format of mm/dd/yy?..

Answer / sai shankar

(0[1-9]|1[0-2])[./-](0[1-9]|1[0-9]|2[0-9]|[a-z])[./-]([0-9]{4})

Is This Answer Correct ?    0 Yes 0 No

write the regular expression for date format of mm/dd/yy?..

Answer / pavani prasad

Thanks ranu & pratap.

But given regular expressions are accepting the invalid
date like 19/39/2000

Is This Answer Correct ?    0 Yes 2 No

write the regular expression for date format of mm/dd/yy?..

Answer / pavani prasad

Thanks Rajesh

Is This Answer Correct ?    1 Yes 3 No

write the regular expression for date format of mm/dd/yy?..

Answer / ranu rathore

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

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More QTP Interview Questions

What does "Dynamic change on web pages" means.As per my knowledge, this comes in "Complete" level of Active screen capture levels, where it says, "Also dynamic changes on web changes are saved.so i want to know what type of dynamic changes are made and is this dyanmic changes efftes only on web application or any other?

0 Answers   EDS,


How do you handle XML exceptions in QTP (Here it is Exception, not the checkpoint)

2 Answers   CFC, CTS,


What is business process testing(bpt) in qtp?

0 Answers  


Hi Friends, Can you please answer these questions of QTP Certification? 1.) What are bitmap checkpoints sensitive to? A. Image size and object type B. Object type and image type C. Screen resolution and object type D. Screen resolution and image size 2.)What are the phases in the QuickTest workflow? A. Plan, Record, Enhance, Run B. Prepare, Record, Verify, Run C. Plan, Create, Verify & Enhance D. Prepare, Create, Verify & Enhance, Integrate 3.) What are the two most commonly used ADO objects? A. Fields B. Execute C. Connection, RecordSet D. Open, ConnectionString 4.)What options are available to filter objects in the Target Object Repository pane when merging object repositories? A. Show all objects or Show only objects with conflicting object types B. Show all objects or Show only objects with conflicting descriptions C. Show only objects with conflicting logical names or Show only objects with conflicting object types D. Show only objects with conflicting logical names or Show only objects with conflicting descriptions 5.)Which of the following is an example of a missing resource? A. An object B. Run Results C. A Regular Action D. An External Action 6.)What method is used to retrieve the number of columns in the query results? A. Fields.Count B. Fields.Item(EOF) C. Fields.Count(BOF) D. Fields.Count.Value 7.)In VB Script functions, which one is false among the following a. Variables must be declared before use b. Variables may not be declared before use c. Variables may be declared without data types None

2 Answers  


What is the main differece between QTP 9.0 and 9.2

1 Answers   VeriSign,


How does qtp identify objects in the application?

0 Answers  


Waht is Test Report , What it consists?

2 Answers  


In a webpage how to check the dynamic links that re changing regularly?( without using regular expressions.)

3 Answers   Misys,


What type of framework you are using in your company and explain it?

4 Answers   CTS,


how qtp handles customised object

1 Answers  


what you mean by artifact,milestone...

0 Answers  


What is the diff between image and bitmap check point?

0 Answers  


Categories