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...


How do u write a regular expression for date (dd/mm/yyyy)
field?

Answers were Sorted based on User's Feedback



How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / amarendra kothuru

The above regular expression(Ans:1) will fail as it allows
day between 31 to 40 as well.

The following regular expression takes care of all cases
and validate the format (dd/mm/yyyy)

(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/\d{4}

Is This Answer Correct ?    22 Yes 15 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / kirti

(0[1-9]|[12][0-9]|3[01])[//](0[1-9]|1[012])[//]([0-9]{4})

Is This Answer Correct ?    7 Yes 5 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / krishna

This is the corect answer:

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

[0-9]{4}

Is This Answer Correct ?    6 Yes 4 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / satish yadav

To write regular expression for dd/mm/yyyy format
[0-3][0-9][/](([0][0-9])|([1][0-2]))[/][0-9]{4}

Is This Answer Correct ?    20 Yes 20 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / naresh

([0-2][1-9]|[3][0-1])|([0][1-9]|[1][1-2])|[0-9][0-9][0-9][0-9]


Tjis is the perfedct regular expression for the date.. guys...

Is This Answer Correct ?    0 Yes 0 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / megh

Regex Birthdate = new Regex(@"((0[1-9]{1})|([1-2]{1}[0-9]{1})|(3[0-1]{1}))[-/]{1}((0[0-9]{1})|(1[0-2]{1}))[-/]{1}[0-9]{4}");

Is This Answer Correct ?    0 Yes 0 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / laxman

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

Is This Answer Correct ?    0 Yes 0 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / gopal

Experts,

I want expression for DD.MM.YYYY !!

Please help !!

Thanks a lot !!

Is This Answer Correct ?    0 Yes 1 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / megh

Regex Birthdate = new Regex(@"((0[1-9]{1})|([1-2]{1}[0-9]{1})|(3[0-1]{1}))[-/]{1}((0[0-9]{1})|(1[0-2]{1}))[-/]{1}[0-9]{4}");

Is This Answer Correct ?    0 Yes 1 No

How do u write a regular expression for date (dd/mm/yyyy) field?..

Answer / sk

[0-9]+//[0-9]+//[0-9]+
use this buddy...

Is This Answer Correct ?    6 Yes 9 No

Post New Answer

More QTP Interview Questions

What is the difference between action & script?

3 Answers  


Which MS Excel formulas are possible to use in the DataTable? I am searching a formula for searching a field in the datatable

3 Answers   HP,


Where virtual objects stores results?

4 Answers  


Hi I able to record IE object but not able to record mozilla firefox 3 object using QTP 10. i don know wats the problem????

2 Answers  


What are the most frequent errors you faced while executing your scripts?

1 Answers  


What the differences are and best practical application of each.

1 Answers  


How to connect to the Database from QTP?

10 Answers   DB, Thatavarti Technologies, Xchanging,


how to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.

3 Answers  


Recovery Manager means..?

4 Answers  


How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.

2 Answers   Accenture, CSC,


Currently i have designed my script based on the test cases present in Quality Center. I want to run my script from quality center. Can anyone help me to get the code which will connect QTP with Quality Center and execute the test cases?

1 Answers  


what is the difference between the modular framework and datadriven frame work

2 Answers  


Categories