PDA

View Full Version : Dates & time



Aminiasi
05-10-2010, 06:57 AM
Hey Everyone,

Site is www.tickasports.com.au/constructionstage (http://www.tickasports.com.au/constructionstage).

I was wondering if someone here could help me get a programme or show me how to add an element so that browsers could see a future date gets displayed on that site where the marquee on the top left hand corner is scrolling towards.

Every help will be very much appreciated.

Cheers

WSBlue
05-10-2010, 08:22 AM
http://www.vodahost.com/vodatalk/general-support-issues/49777-how-do-i-insert-date-webpage-without-using-bluevoda.html
navaldesign
General & Forum Moderator


<font style="font-size:12px;font-family:Arial;" color=#000000>
<div id="basicdate">
</div>
</font>
<script language="JavaScript" type="text/javascript">
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thu rsday','Friday','Saturday');
var months = new Array('January','February','March','April','May',' June','July','August','September','October','Novem ber','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
var year = (now.getYear() < 1000) ? now.getYear() + 1900 : now.getYear();
today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + year;
basicdate.innerHTML = today;
</script>

Aminiasi
05-15-2010, 06:43 AM
My apologies, its been long and I just want to thank you for your reply. Have got the date on the site now.

Cheers to everyone.

Another one bites the dust!