<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7210265920944311125</id><updated>2024-08-29T16:37:15.353-07:00</updated><category term="Check string"/><category term="analog apex clock"/><category term="analog clock"/><category term="apex clock"/><category term="check date fromat"/><category term="check date string"/><category term="checking date format"/><category term="coolclock plugin for oracle apex"/><category term="custom date format"/><category term="date format"/><category term="fi"/><category term="javascript clock for oracle apex"/><category term="rename filebrowse control"/><category term="rename the browse button"/><category term="rename the browse button of the filebrowse control"/><category term="validate date format"/><category term="validate date string"/><category term="validate string date format"/><category term="vbscript"/><title type='text'>Sunil Sindal</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sunilsindal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7210265920944311125/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sunilsindal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sunil Sindal</name><uri>http://www.blogger.com/profile/08809999130948649318</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7210265920944311125.post-2364938837732062819</id><published>2011-04-12T11:52:00.000-07:00</published><updated>2011-04-20T23:52:49.669-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="analog apex clock"/><category scheme="http://www.blogger.com/atom/ns#" term="analog clock"/><category scheme="http://www.blogger.com/atom/ns#" term="apex clock"/><category scheme="http://www.blogger.com/atom/ns#" term="coolclock plugin for oracle apex"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript clock for oracle apex"/><title type='text'>CoolClock - The Javascript Analog Clock Plugin for Oracle APEX 4.0</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;h2&gt;About CoolClock&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;CoolClock is a customisable javascript analog clock.CoolClock was created by Simon Baird.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;h2&gt;Requirements&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;CoolClock requires canvas suport therefore it works best in Firefox, Safari or Chrome. It can work in IE via the use of &lt;a href=&quot;http://excanvas.sourceforge.net/&quot;&gt;ExplorerCanvas&lt;/a&gt; however in IE it refreshes slowly, doesn&#39;t render as nicely and the second hand decoration is disabled due to a rendering glitch. CoolClock does not use Flash. &lt;/p&gt;&lt;br /&gt;&lt;h2&gt;Download&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;CoolClock Oracle APEX Plugin can be downloaded from &lt;a target=&quot;_blank&quot; href=&quot;http://www.apex-plugin.com/index2.php?option=com_sobi2&amp;sobi2Task=dd_download&amp;fid=167&amp;format=html&amp;Itemid=1&quot;&gt; here &lt;/a&gt;&lt;br /&gt;&lt;h2&gt;Using CoolClock Plugin&lt;/h2&gt;Steps &lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Click on Create Item.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Select Item Type as Plug-ins.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Select Plug-ins as Analog Clock. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;Enter Item Name/Id, Sequence, Region to display the clock.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Set the item attributes.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Enter the Radius e.g. 60 and Parameters e.g. fancy myClock to display the clock.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Click Next.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create Item.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Run the Page.&lt;/li&gt;&lt;/ol&gt;Coolclock plugin will be rendered in the body of your html file like the following: &lt;pre&gt;&amp;lt;canvas id=&quot;&lt;i&gt;clockid&lt;/i&gt;&quot; class=&quot;CoolClock:&lt;i&gt;Skin&lt;/i&gt;:&lt;i&gt;Radius&lt;/i&gt;:noSeconds:&lt;i&gt;GMTOffset&lt;/i&gt;&quot;&amp;gt;&amp;lt;/canvas&amp;gt;&lt;/pre&gt;The colon delimited fields after &lt;tt&gt;CoolClock&lt;/tt&gt; in the class control the appearance of the clock. The fields are as follows:&lt;table style=&quot;BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-TOP: white 1px solid; BORDER-RIGHT: white 1px solid&quot; class=&quot; td{border:1px white solid;}&quot;&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;CoolClock&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Required&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Without that your canvas will be left alone&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;i&gt;Skin&lt;/i&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Optional. Default is &quot;swissRail&quot;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Specifies which skin to use. CoolClock includes skins like, &quot;swissRail&quot;, &quot;chunkySwiss&quot;, &quot;fancy&quot;, &quot;machine&quot;, &quot;classic&quot;, &quot;modern&quot; and &quot;simple&quot;. It&#39;s easy to create your own additional skins&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;i&gt;Radius&lt;/i&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Optional. Default is 85&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Specifies the radius in pixels of the clock&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;noSeconds&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Optional&lt;/td&gt;&lt;br /&gt;&lt;td&gt;If you include &quot;noSeconds&quot; as the last field then the clock will have no second hand. Use if your CPU usage is too high&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;i&gt;GMTOffset&lt;/i&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;Optional&lt;/td&gt;&lt;br /&gt;&lt;td&gt;If you don&#39;t specify anything you get local time. If you specify a value here (in hours) it will be used as an offset from GMT (UTC). Eg, put -5 to indicate 5 hours behind GMT. You can specify fractions of hours, eg +2.5&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;You should be able to omit fields to indicate you want the default values, eg &quot;Parameters=&quot;::noSeconds&quot; means default skin and default size with no second hand.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;If you want to add a real css class to your clock canvases you can do so by adding a space then the class. For example: Parameters=&quot;fancy myClock&quot;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The id can be anything but it should be unique of course.&lt;/p&gt;&lt;br /&gt;&lt;h2&gt;Creating Your Own Skin&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;You can design your own clock by creating a CoolClock &quot;skin&quot;. Take a look at the CoolClock.config section the &lt;a href=&quot;http://www.blogger.com/coolclock.js&quot;&gt;javascript file&lt;/a&gt;. Copy and paste an existing skin, for example copy these nine lines: &lt;pre&gt; swissRail: {&lt;br /&gt;  outerBorder: { lineWidth: 1, radius:95, color: &quot;black&quot;, alpha: 1 },&lt;br /&gt;  smallIndicator: { lineWidth: 2, startAt: 89, endAt: 93, color: &quot;black&quot;, alpha: 1 },&lt;br /&gt;  largeIndicator: { lineWidth: 4, startAt: 80, endAt: 93, color: &quot;black&quot;, alpha: 1 },&lt;br /&gt;  hourHand: { lineWidth: 8, startAt: -15, endAt: 50, color: &quot;black&quot;, alpha: 1 },&lt;br /&gt;  minuteHand: { lineWidth: 7, startAt: -15, endAt: 75, color: &quot;black&quot;, alpha: 1 },&lt;br /&gt;  secondHand: { lineWidth: 1, startAt: -20, endAt: 85, color: &quot;red&quot;, alpha: 1 },&lt;br /&gt;  secondDecoration: { lineWidth: 1, startAt: 70, radius: 4, fillColor: &quot;red&quot;, color: &quot;red&quot;, alpha: 1 }&lt;br /&gt; },&lt;br /&gt;  &lt;/pre&gt;Name your skin, eg change &quot;swissRail&quot; to &quot;mySkin&quot;. Your skin is now available for use. Change the settings in your skin to change the look of your clock. The numbers refer to a percentage of the radius, so &lt;tt&gt;startAt: 0, endAt: 50&lt;/tt&gt; means a line from the center to 50% of the way to the edge. Alpha means the transparency of the element where &lt;tt&gt;alpha: 1&lt;/tt&gt; means solid. For example &lt;tt&gt;alpha: 0.5&lt;/tt&gt; means 50% transparent. Use the other skins for examples. &lt;br /&gt;&lt;h2&gt;Examples&lt;/h2&gt;&lt;br /&gt;FOr more Examples please visit&lt;a href=&quot;http://randomibis.com/coolclock/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjipPE_VAHMwSDsbg3JjoDO5-6atAHht5TZjQjd9i706gU7hL5olEctjazHYP6jPu7OwZZZO3Fc_ow9QUYDtCD0wJrmgsvK58eRMirQyv0MnbMSTZrCRHNs3ewzPTgpIuzO9r-s1Sq8UDWg/s1600/Untitled.jpg&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5594810839352467010&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjipPE_VAHMwSDsbg3JjoDO5-6atAHht5TZjQjd9i706gU7hL5olEctjazHYP6jPu7OwZZZO3Fc_ow9QUYDtCD0wJrmgsvK58eRMirQyv0MnbMSTZrCRHNs3ewzPTgpIuzO9r-s1Sq8UDWg/s1600/Untitled.jpg&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sunilsindal.blogspot.com/feeds/2364938837732062819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sunilsindal.blogspot.com/2011/04/coolclock-javascript-analog-clock.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7210265920944311125/posts/default/2364938837732062819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7210265920944311125/posts/default/2364938837732062819'/><link rel='alternate' type='text/html' href='http://sunilsindal.blogspot.com/2011/04/coolclock-javascript-analog-clock.html' title='CoolClock - The Javascript Analog Clock Plugin for Oracle APEX 4.0'/><author><name>Sunil Sindal</name><uri>http://www.blogger.com/profile/08809999130948649318</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjipPE_VAHMwSDsbg3JjoDO5-6atAHht5TZjQjd9i706gU7hL5olEctjazHYP6jPu7OwZZZO3Fc_ow9QUYDtCD0wJrmgsvK58eRMirQyv0MnbMSTZrCRHNs3ewzPTgpIuzO9r-s1Sq8UDWg/s72-c/Untitled.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7210265920944311125.post-3171106743864053764</id><published>2010-10-23T06:54:00.000-07:00</published><updated>2010-10-23T08:08:36.369-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fi"/><category scheme="http://www.blogger.com/atom/ns#" term="rename filebrowse control"/><category scheme="http://www.blogger.com/atom/ns#" term="rename the browse button"/><category scheme="http://www.blogger.com/atom/ns#" term="rename the browse button of the filebrowse control"/><title type='text'>Rename the browse button of the filebrowse control</title><content type='html'>To rename the browse button of the filebrowse control in HTML user the below trick&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;html&gt;&lt;br /&gt;&amp;lt;head&gt;&amp;lt;/head&gt;&lt;br /&gt;&amp;lt;body&gt;&lt;br /&gt;&amp;lt;form name=&quot;test_form&quot; method=&quot;post&quot; action=&quot;test.jsp&quot;&gt;&lt;br /&gt;&amp;lt;input type=file name=browse style=&quot;display: none;&quot;&gt;&lt;br /&gt;&amp;lt;input type=text name=file&gt;&lt;br /&gt;&amp;lt;input type=button value=&quot;Select a File...&quot; onClick=&quot;browse.click();file.value=browse.value;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- must be clicked twice for the form to submit! --&gt;&lt;br /&gt;&amp;lt;input type=submit value=&quot;Submit The Form Now!&quot;&gt;&lt;br /&gt;&amp;lt;/form&gt;&lt;br /&gt;&amp;lt;/body&gt;&lt;br /&gt;&amp;lt;/html&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;the above method only works in IE.&lt;br /&gt;&lt;h4&gt;Javascript method to rename the Browse button of the filebrowse control.&lt;/h4&gt;&lt;br /&gt;To work with other browsers try the below one.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;function HandleBrowseClick()&lt;br /&gt;{&lt;br /&gt;    var fileinput = document.getElementById(&quot;browse&quot;);&lt;br /&gt;    fileinput.click();&lt;br /&gt;    var textinput = document.getElementById(&quot;filename&quot;);&lt;br /&gt;    textinput.value = fileinput.value;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;input type=&quot;file&quot; id=&quot;browse&quot; name=&quot;fileupload&quot; style=&quot;display: none&quot;/&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;text&quot; id=&quot;filename&quot; readonly=&quot;true&quot;/&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;button&quot; value=&quot;Click to select file&quot; id=&quot;fakeBrowse&quot; onclick=&quot;HandleBrowseClick();&quot;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h4&gt;CSS method to rename the Browse button of the filebrowse control.&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;You can try the below method based on pure CSS&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;div.fileinputs {&lt;br /&gt; position: relative;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;div.fakefile {&lt;br /&gt; position: absolute;&lt;br /&gt; top: 0px;&lt;br /&gt; left: 0px;&lt;br /&gt; z-index: 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;input.file {&lt;br /&gt; position: relative;&lt;br /&gt; text-align: right;&lt;br /&gt; -moz-opacity:0 ;&lt;br /&gt; filter:alpha(opacity: 0);&lt;br /&gt; opacity: 0;&lt;br /&gt; z-index: 2;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;div class=&quot;fileinputs&quot;&amp;gt;&lt;br /&gt; &amp;lt;input type=&quot;file&quot; class=&quot;file&quot; /&amp;gt;&lt;br /&gt; &amp;lt;div class=&quot;fakefile&quot;&amp;gt;&lt;br /&gt;  &amp;lt;input /&amp;gt;&lt;br /&gt;  &amp;lt;img src=&quot;search.gif&quot; /&amp;gt;&lt;br /&gt; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sunilsindal.blogspot.com/feeds/3171106743864053764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sunilsindal.blogspot.com/2010/10/to-rename-browse-button-of-filebrowse.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7210265920944311125/posts/default/3171106743864053764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7210265920944311125/posts/default/3171106743864053764'/><link rel='alternate' type='text/html' href='http://sunilsindal.blogspot.com/2010/10/to-rename-browse-button-of-filebrowse.html' title='Rename the browse button of the filebrowse control'/><author><name>Sunil Sindal</name><uri>http://www.blogger.com/profile/08809999130948649318</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7210265920944311125.post-7388076635536386041</id><published>2010-08-24T23:40:00.000-07:00</published><updated>2010-08-25T05:06:40.798-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="check date fromat"/><category scheme="http://www.blogger.com/atom/ns#" term="check date string"/><category scheme="http://www.blogger.com/atom/ns#" term="Check string"/><category scheme="http://www.blogger.com/atom/ns#" term="checking date format"/><category scheme="http://www.blogger.com/atom/ns#" term="custom date format"/><category scheme="http://www.blogger.com/atom/ns#" term="date format"/><category scheme="http://www.blogger.com/atom/ns#" term="validate date format"/><category scheme="http://www.blogger.com/atom/ns#" term="validate date string"/><category scheme="http://www.blogger.com/atom/ns#" term="validate string date format"/><category scheme="http://www.blogger.com/atom/ns#" term="vbscript"/><title type='text'>Validating a string with specific custom date format in VbScript</title><content type='html'>I have search for a vbscript function to meet my requirement of validating a date string with a specific date format but my badluck i am unable to find which meets my requirement.So i finally decide to write my own script to fulfill my requirement.&lt;br /&gt;My custom function to validate / check for a custom date format in a date string it returns True or False&lt;br /&gt;Assumptions:&lt;br /&gt;Date format contains date in DD format, month in MM or MMM format, year in YY or YYYY format.&lt;br /&gt;e.g. DD-MM-YYYY or MM-DD-YYYY or YY-DD-MM or MM-YY-DD or MM/YY/DD etc&lt;br /&gt;If year is in YY then it consider it to be 2000 year only e.g. 10-15-02 and format is YY-DD-MM&lt;br /&gt;then it will check for a valid date of 2010 15th Feb .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;BORDER-RIGHT: 1px; BORDER-TOP: 1px; BORDER-LEFT: 1px; WIDTH: 400px; BORDER-BOTTOM: 1px&quot;&gt;&lt;br /&gt;&lt;h4&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Function CheckDate(strDate,strFormat)&lt;br /&gt;strFormat=UCase(strFormat)&lt;br /&gt;If(Len(strDate)=Len(strFormat)) Then &lt;br /&gt; Dim iStartD,iLastD,iStartM,iLastM,iStartY,iLastY,iFirstSeperator,iLastSeperator&lt;br /&gt; &lt;br /&gt; iStartD=InStr(1,strFormat,&quot;D&quot;)&lt;br /&gt; iLastD=InStrRev(strFormat,&quot;D&quot;)&lt;br /&gt; iStartM=InStr(1,strFormat,&quot;M&quot;)&lt;br /&gt; iLastM=InStrRev(strFormat,&quot;M&quot;)&lt;br /&gt; iStartY=InStr(1,strFormat,&quot;Y&quot;)&lt;br /&gt; iLastY=InStrRev(strFormat,&quot;Y&quot;)&lt;br /&gt; For i=1 To Len(strFormat)&lt;br /&gt;  Dim x,seperators&lt;br /&gt;  seperators=&quot;/.-|:&quot;&lt;br /&gt;  x=Mid(strFormat,i,1)&lt;br /&gt;  If(InStr(seperators,x)&gt;0) Then&lt;br /&gt;   iFirstSeperator=InStr(strFormat,x)&lt;br /&gt;   iLastSeperator=InStrRev(strFormat,x)&lt;br /&gt;   Exit For &lt;br /&gt;  End if&lt;br /&gt; Next&lt;br /&gt; &#39;WScript.Echo iFirstSeperator&amp;&quot; &quot;&amp;iLastSeperator&lt;br /&gt; &lt;br /&gt; &#39;WScript.Echo iStartD&amp;&quot; &quot;&amp;iLastD&amp;&quot; &quot;&amp;iStartM&amp;&quot; &quot;&amp;iLastM&amp;&quot; &quot;&amp;iStartY&amp;&quot; &quot;&amp;iLastY&lt;br /&gt; &lt;br /&gt; Dim vDate,vMonth,vYear,validDate&lt;br /&gt; validDate=False&lt;br /&gt; &lt;br /&gt; If(iLastD&gt;1) Then &lt;br /&gt;  vDate=Mid(strDate,iStartD,iLastD-iStartD+1)&lt;br /&gt;  Else&lt;br /&gt;  vDate=&quot;01&quot;&lt;br /&gt; End If &lt;br /&gt; If(iLastM&gt;1) Then &lt;br /&gt;  vMonth=Mid(strDate,iStartM,iLastM-iStartM+1)&lt;br /&gt;  Else&lt;br /&gt;  vMonth=&quot;01&quot;&lt;br /&gt; End If &lt;br /&gt; If(iLastY&gt;1) Then &lt;br /&gt;  vYear=Mid(strDate,iStartY,iLastY-iStartY+1)&lt;br /&gt;  Else&lt;br /&gt;  vYear=&quot;2010&quot;&lt;br /&gt; End If &lt;br /&gt; If(Not Len(vYear)&gt;2)Then &lt;br /&gt; vYear=&quot;20&quot;&amp;vYear&lt;br /&gt; End If &lt;br /&gt; &#39;WScript.Echo vDate &amp;&quot; &quot;&amp;vMonth&amp;&quot; &quot;&amp;vYear&lt;br /&gt; If(Len(vMonth)&gt;2) Then&lt;br /&gt;  WScript.Echo IsDate(vDate&amp;&quot;-&quot;&amp;vMonth&amp;&quot;-&quot;&amp;vYear)&lt;br /&gt;  If(IsDate(vDate&amp;&quot;-&quot;&amp;vMonth&amp;&quot;-&quot;&amp;vYear)) Then &lt;br /&gt;   WScript.Echo CDate(vDate&amp;&quot;-&quot;&amp;vMonth&amp;&quot;-&quot;&amp;vYear)&lt;br /&gt;   validDate=True&lt;br /&gt;  End If &lt;br /&gt; ElseIf(Len(vMonth)&lt;3) Then&lt;br /&gt;  WScript.Echo IsDate(vYear&amp;&quot;/&quot;&amp;vMonth&amp;&quot;/&quot;&amp;vDate)&lt;br /&gt;  If(IsDate(vYear&amp;&quot;/&quot;&amp;vMonth&amp;&quot;/&quot;&amp;vDate))Then &lt;br /&gt;  WScript.Echo CDate(vYear&amp;&quot;/&quot;&amp;vMonth&amp;&quot;/&quot;&amp;vDate)&lt;br /&gt;   validDate=True&lt;br /&gt;  End if&lt;br /&gt; End If &lt;br /&gt; &lt;br /&gt; If(iFirstSeperator&gt;1 And validDate=True) Then &lt;br /&gt;  If(Mid(strFormat,iFirstSeperator,1)=Mid(strDate,iFirstSeperator,1) And Mid(strFormat,iLastSeperator,1)=Mid(strDate,iLastSeperator,1)) Then &lt;br /&gt;  validDate=True&lt;br /&gt;  Else&lt;br /&gt;  validDate=False&lt;br /&gt;  End If&lt;br /&gt; End If &lt;br /&gt; &lt;br /&gt; Else&lt;br /&gt; validDate=False&lt;br /&gt; End If&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CheckDate=validDate&lt;br /&gt;End Function&lt;/pre&gt;&lt;br /&gt;&lt;/h4&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sunilsindal.blogspot.com/feeds/7388076635536386041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sunilsindal.blogspot.com/2010/08/validating-string-with-specific-custom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7210265920944311125/posts/default/7388076635536386041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7210265920944311125/posts/default/7388076635536386041'/><link rel='alternate' type='text/html' href='http://sunilsindal.blogspot.com/2010/08/validating-string-with-specific-custom.html' title='Validating a string with specific custom date format in VbScript'/><author><name>Sunil Sindal</name><uri>http://www.blogger.com/profile/08809999130948649318</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>