Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Weird Stuff!

I am working on a new template which can be viewed at:

I am getting a strange date at the top of the entries on the main page but when I click the link to an article it shows up properly.

Does anyone know what is going on here?

Thanks in advance...


Jack Davies
Saturday, April 26, 2003

Is that a {$.fileddate$} because if it is, it's showing the date of that article... If you created the index article on Feb 26, it'll show Feb 26 forever.
Saturday, April 26, 2003

Try this Javascript.. It'll show the current date from the user's computer, so it doesn't depend on when you published:

<script language="JavaScript"><!--
function makeArray() {
    for (i = 0; i<makeArray.arguments.length; i++)
          this[i + 1] = makeArray.arguments[i];

var months = new makeArray('January','February','March',

var date = new Date();
var day  = date.getDate();
var month = date.getMonth() + 1;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;

document.write(months[month] + " " + day + ", " + year);
Sunday, April 27, 2003

Thank you, sir...that Javascript works just fine.

I appreciate the help.

Take care...

Jack Davies
Sunday, April 27, 2003

*  Recent Topics

*  Fog Creek Home