Project / Support Center
Welcome, %1$s. Please login or register. February 28, 2024, 11:30: AM
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Javascripting  |  : Date Display - Day - Month/day/year 0 and 1 Guest are viewing this topic. « previous next »
: [1]
: Date Display - Day - Month/day/year  ( 13753 )
admin
« : November 25, 2006, 11:52: AM »

<script>
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=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='Verdana'>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</font></small>")
</script>
 
: [1]  
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Javascripting  |  : Date Display - Day - Month/day/year « previous next »
:  


Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!
Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.