News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Current Full Date - JavaScript for your web site

Started by ganeshbala, Apr 09, 2009, 09:18 PM

Previous topic - Next topic

ganeshbala

Current Full Date - JavaScript

<script>

/*Current date script credit:
JavaScript Kit ([url=http://www.javascriptkit.com]www.javascriptkit.com[/url])
Over 200  free scripts here!
*/

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year =1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0" daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><font color='000000' face='Arial'><b>" dayarray[day] ", " montharray[month] " " daym ", " year "</b></font></small>")

</script>

<p align="center"><font face="arial, helvetica" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>


Source : javascriptkit

KielSolomon18

                 I try to used the other codes for my web site with this javascript.

_________________
Indianapolis SEO

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it has been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S post or ALT+P preview