avascript Function ::
Showdate() Syntax:
Showdate ( [date object|string], [day string], [month string], [date string], [year string], [delimeter string] )
Date:- Javascript date object in the form
new Date(), new Date(1982,06,30).
Day:- Day string in the form
"dddd" or "ddd".
Month:- Month string in the form
"mmmm", "mmm", "mm".
Date:- Date string in the form
"dddd", "ddd", "dd", "d".
Year:- Year string in the form
"yyyy", "yy".
Example Results Showdate(new Date(), 'dddd', 'mmm', 'dd', 'yyyy', '-') Sunday, November-25-2007 Showdate(new Date(), 'dd', 'mm', 'dd', 'yyyy', '.') 36.25.2007 Showdate(new Date(2001,11,25), 'dddd', 'mmm', 'dd', 'yy', ' ') Tuesday, Dec 25 01
HTML-Kodu:
<!-- ONE STEP TO INSTALL SHOWDATE FUNCTION:
1. Copy the coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the BODY of your HTML document --> <BODY> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Original: Demetrius Francis () --> <!-- Web Site: http://www.angelfire.com/de/draf/ --> <script LANGUAGE="javascript" type="text/javascript" src="showdate.js"></script> <table width="650" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="font-family:verdana; font-size:10px; background-color:#ffcc33; padding:0x; height:20px; border-bottom:#eee 5px solid"> <div align="left" id="banner" style="padding:2px">Javascript Function :: <b>Showdate()</b></div> <p style="padding-left:15px; background-color:#eee;">
Syntax:
<br><br> <b>Showdate</b> ( [date object|string], [day string], [month string], [date string], [year string], [delimeter string] )
<br> <br> <i>Date</i>:- Javascript date object in the form <i>new Date(), new Date(1982,06,30)</i>.
<br> <br> <i>Day</i>:- Day string in the form <i>"dddd" or "ddd"</i>.
<br> <br> <i>Month</i>:- Month string in the form <i>"mmmm", "mmm", "mm"</i>.
<br> <br> <i>Date</i>:- Date string in the form <i>"dddd", "ddd", "dd", "d"</i>.
<br> <br> <i>Year</i>:- Year string in the form <i>"yyyy", "yy"</i>.
</p> </td> </tr> </table> <br> <table width="650" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="font-family:verdana; font-size:10px; background-color:#eee; padding:0x;">
Example
</td> <td style="font-family:verdana; font-size:10px; background-color:#eee; padding:0x;">
Results
</td> </tr> <tr> <td style="font-family:verdana; font-size:10px; background-color:#eee; padding:0x;">Showdate(new Date(), 'dddd', 'mmm', 'dd', 'yyyy', '-')</td> <td style="font-family:verdana; font-size:10px; background-color:#eee; padding:0x; height:20px; border-bottom:#eee 5px solid"> <script LANGUAGE="javascript" type="text/javascript"> document.write(Showdate(new Date(), 'dddd', 'mmmm', 'dd', 'yyyy', '-'))</script> </td> </tr> <tr> <td style="font-family:verdana; font-size:10px; background-color:#eee; padding:0x;">Showdate(new Date(), 'dd', 'mm', 'dd', 'yyyy', '.')</td> <td style="font-family:verdana; font-size:10px; background-color:#eee; padding:0x; height:20px; border-bottom:#eee 5px solid"> <script LANGUAGE="javascript" type="text/javascript"> document.write(Showdate(new Date(), 'dd', 'mm', 'dd', 'yyyy', '.')) </script> </td> </tr> <tr> <td style="font-family:verdana; font-size:10px; background-color:#eee; padding:0x;">Showdate(new Date(2001,11,25), 'dddd', 'mmm', 'dd', 'yy', ' ')</td> <td style="font-family:verdana; font-size:10px; background-color:#eee; padding:0x; height:20px; border-bottom:#eee 5px solid"> <script LANGUAGE="javascript" type="text/javascript"> document.write(Showdate(new Date(2001,11,25), 'dddd', 'mmm', 'dd', 'yy', ' '))</script></td> </tr> </table> <p> <a href="showdate.js">Download showdate.js</a> <p><center> <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p> <!-- Script Size: 3.77 KB -->