Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 29th, 2001, 12:23 AM
mydowns mydowns is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 5 mydowns User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
date

this is a demo:
http://www.85time.com/bbs/showthread.php?threadid=144


this is a code:
Code:
<HTML> 
<HEAD> 
<TITLE>Date</TITLE> 
<SCRIPT LANGUAGE="JavaScript"> 
<!-- 
function MakeArray(n) { 
this.length = n 
return this 
} 
monthNames = new MakeArray(12) 
monthNames[1] = "January" 
monthNames[2] = "February" 
monthNames[3] = "March" 
monthNames[4] = "April" 
monthNames[5] = "May" 
monthNames[6] = "June" 
monthNames[7] = "July" 
monthNames[8] = "August" 
monthNames[9] = "September" 
monthNames[10] = "October" 
monthNames[11] = "November" 
monthNames[12] = "December" 
dayNames = new MakeArray(7) 
dayNames[1] = "Sunday" 
dayNames[2] = "Monday" 
dayNames[3] = "Tuesday" 
dayNames[4] = "Wednesday" 
dayNames[5] = "Thursday" 
dayNames[6] = "Friday" 
dayNames[7] = "Saturday" 

function customDateString() { 
currentDate = new Date() 
var theDay = dayNames[currentDate.getDay() + 1] 
var theMonth = monthNames[currentDate.getMonth() + 1] 
msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )); 
if (msie4) { 
var theYear = currentDate.getYear() 
} 
else { 
var theYear = currentDate.getYear() +1900 
} 
return theDay + ", " + theMonth + " " + currentDate.getDate() + ", " + theYear 
} 
//--> 
</SCRIPT> 
</HEAD> 
<BODY bgcolor="#FFFFFF"> 
<center><h2> 
<SCRIPT LANGUAGE="JavaScript"> 
document.write(customDateString()) 
</SCRIPT> 
</center> 
</h2> 
</BODY> 
</HTML>

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > date

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap