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

There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

0 Answers  


In qtp, explain what is crypt object

0 Answers  


Can anybody give the code for ALL DATATABLE METHODS)(ex: datatable.getrowcount, datatable.getsheet etc....) and ALL DATABASE COMMANDS (like .getcelldata, which are used to retrieve data from a database and from a webtable)with examples.

1 Answers   Accenture,


What is the difference between QTP 8.2 and QTP 9.2 ?

4 Answers   IBM, Infotech,


i have qtp 9.5 ver software.but i don't know the license key. if anyone have license key please send it to my personal mail id(munir.reddy@yahoo.com

2 Answers  


How to add a runtime parameter to a data sheet?

6 Answers  


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

0 Answers   IBM,


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

1 Answers   Mphasis,


How many types of actions are there in quicktest professional (qtp)?

0 Answers  


How to retrive XML file data in QTP ? using Script(Chandana)

6 Answers   Wipro,


I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)

0 Answers  


What is output value? How many types of output values are there in qtp?

0 Answers  


Categories