Student Mode Code Display

Welcome to the Fraternity!

Commenting has been enabled. You can comment on all the Code Items now.

Regular Expression Pattern To Match Date in QTP or Vbscript


Add This Code to My Favourite List
Enter Email

Contributed By admin
Date 2015-01-26 12:06:18

'This covers any date with date format 
'as mm/dd/yyyy, mm.dd.yyyy or mm-dd-yyyy

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

| pipe symbol indicates conditional or
[] indicates subset
\d indicates any digit
Let’s break the segments for better explanation:

•Month: (0[1-9]|1[012]) : month can be from 01 to 12. 
Expression indicates:
That first digit can be a 0 and second digit 
of the month between 1-9.
To cover months: 01 till 09
Or
First digit can be 1 and second digit will be 0, 1 or 2
To cover months 10, 11 and 12.
•[- /.] : To cover the date format 
i.e. mm/dd/yyyy, mm.dd.yyyy and mm-dd-yyyy

•Date: (0[1-9]|[12][0-9]|3[01]
If first digit is 0 then second digit can be from 1-9
Or
If first digit is 1 or 2 then second digit can be from 0-9
To cover: 10-19 and 20 to 29
Or
If first digit is 3 than second digit can be 0 or 1
To cover 30 and 31

•Year: (19|20)\d\d
First two digits as either 19 or 20 and second,
2 digits can be any number
To cover year 1900 till 2099

Download Above Code

Comments:


Updated by Morad at 2016-02-20 13:47:10
Оставьте свой комментарий Вы можете использовать следующие HTML тэги: <a> <abbr> <acronym> <b> <blockquote> <cite> <code> <del> <em> <i> <q> <strike> <strong> Notify me of followup cmoemnts via e-mail
Updated by Bruna at 2016-03-02 05:36:00
Jeżeli nie będę miał nic innego do<a href="http://ijaela.com"> rotoby</a>, to postaram się wrzucać w każdym tygodniu. Pamiętaj, że to ma służyća0też mi w nauce, a wiesz jak ważne w tym fachu jest to, by się jak najczęściej uczyć. Dlatego wychodzę z założenia Im częściej tym dobrzej ;)W tej chwili ScreenFlow eksportuje mi nagrany materiał i niebawem powinien pojawić się na stronie. Zapraszam.
Updated by Aakarsh at 2016-03-02 10:52:55
Selamat sore Mas Master di BF, terima kasih seeublmnya untuk jawaban diatas.Nanya lagi (yang masih) berhubungan dengan masalah perhitungan profit. di MT4 ada kolom profit. jika di kolom profit tersebut kita profit/loss (misal 100), apakah nilai itu yang merupakan real profit/loss kita (tanpa melihat currency pair yang kita tradingkan, entah 3/4/5 digit?)? jika profit, apakah nilai tsb yang nantinya bisa ditarik? apakah masih ada perhitungan lagi dengan profit 100 sebagaimana yang tertera di kolom profit di MT4? jika nilai tersebut (100) bukan real profit /masih ada perhitungan lagi, kenapa jika loss 100 balance juga langsung berkurang sebesar 100.dan juga apakah tipe account yang kita buka di permulaan, juga mempengaruhi nilai profit/loss yang akan diperoleh?mohon maaf jika banyak pertanyaan.terima kasih sekali lagi untuk informasi yang diberikan. http://iqoyztdnb.com [url=http://tdynit.com]tdynit[/url] [link=http://gplhvxtfen.com]gplhvxtfen[/link]
Updated by Anthonyunows at 2017-04-13 13:35:15
Hello. Please see below, thanks!
<a href=http://tophotmail.xyz/body>Body test</a>
Bye Bye!!!

Anthonyunows@tophotmail.xyz

Add your comments...
Name : *      
Email : *      
The content of this field will be kept private and will not be shown publicly

Your Comment/Answer *

Enter the text present in this box : *