03-29-2012, 01:51 AM
Can you elaborate on what you want please?
03-29-2012, 01:57 AM
var months = ["Jan","Feb","Mar",...];
function setDateInPlace( )
var now = new Date();
var dateAsString = months[now.getMonth()] + " " + now.getDate() + ", " + now .getFullYear();
document.getElementById("whereTheDateGoes").innerHTML = dateAsString;
window.onload = setDateInPlace(); // better would be to use attachEvent
So make your HTML look pretty, maybe
<div id="whereTheDateGoes" class="someThingFancyNoDoubt">Feb 29, 2013</div>
and then let the JS code replace the pretty date and the replacement will look similarly pretty.
03-29-2012, 02:09 AM
Thanks. One wrong language and one slipped finger. Fixed.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.