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 can we add regular expression for date field
(dd/mon/yyyy)?

Answer Posted / samiran sil

"sDate" is the normal date-

sDay=Datepart("d",sDate)
sMonth = Datepart("m",sDate)
sYear = Datepart("yyyy",sDate)
If Len(sDay) = 1 Then
sDay = "0" & sDay
End If
If Len(sMonth) = 1 Then
sMonth = "0" & sMonth
End If
sDate = sMonth & "/" & sDay & "/" & sYear

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Port testing. Whhen will you perform?

1995


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2909


Difference between copy to action and call to action?

1070


How to carry out bit map check points in QTP

2242


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1955


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1896


How many lines of code in each script of QTP?

4536


When ‘option explicit’ keyword is used in qtp?

1335


what is keyword driven testing in qtp?n how is it useful?

1982


Hi,All How to create a link in excel sheet using qtp

3493


How many types of object repository in qtp?

1151


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

1141


Explain advantages and disadvantages of ddf?

1126


What does mean by Scope of Automation?n How we defined it?

2106


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

2355