IDMIntranet eXchange 
[ Home | Post | Register/Awards | Find | F A Q | Archive ]

 Home/Articles
  •  Recent Tutorials
  •  Recent Features
  •  Top Twenty Articles
  •  Oldies But Goodies
 ITAdvisor
  •  News & Analysis
  •  Security
  •  Intranet Buzz!
  •  Intranet Talk
  •  Intranet Corner
  •  CaseStudies/ Departments
 Intranet Development
  •  WirelessEnterprise
  •  Getting Started
  •  JavaScript
  •  VBScript
  •  HTML/DHTML
  •  XML
  •  ASP/IIS
  •  Perl
  •  PHP
  •  CascadingStyleSheets
  •  Dreamweaver
  •  FrontPage
 Information Management
  •  Content Management
  •  Collaboration
  •  Portals
  •  ASPs
 Intranet Resources
  •  Intranet FAQ
  •  Discussion Board
  •  Jobs Board
  •  Events Calendar
  •  Intranet Books
  •  Tools of the Trade
  •  Glossary
 Archive
 Site Map

Modern Daze: Comics Page

New

Free Newsletter!
 
Privacy Policy

Search IDM:


Hot Intranet eXchange discussion board Threads
º  masking in javascript
º  Can pseudo-url in image maps work? -
º  How do I make these into a real type?
º  Access and Intranet
º  Help with a plan for an Intranet
º  Frames problem
º  Opening Word and Excel Documents from Intranet
º  asp file not running in local intranet environment
º  Best Document Management / Collaboration software
º  readonly text entry
º  Small company intranets
º  Forcing IE to open Excel Workbooks in a New Instance
º  Criteria for content management systems/products
º  Best Document Management / Collaboration software
º  How to have How to have an image follow the mouse cursor
º  Creating Hyperlinks - Database driven
º  Table background..
º  MS Access returning multiple rows

More Intranet eXchange Highlights

*  Articles Elswhere on Internet.com

Re: Javascript for Date Last Changed & Y2K


[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]


Posted by sandi on January 7, 2000 at 19:40:44:

In Reply to: Re: Javascript for Date Last Changed & Y2K posted by bill palmer on January 5, 2000 at 12:11:34:

I've got users of both IE and Netscape. And thanks to an update on the info from Mr. Powell, here's what I've been using to show last update on my pages:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date(document.modified);
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000) // Y2K Fix, Isaac Powell
year = year + 2000; // http://onyx.idbsu.edu/~ipowell
document.write("<font size='-2'><I>Last update: " + lmonth + " ");
document.write(date + ", " + year + " &nbsp;&nbsp;</I></font>");
// End -->
</SCRIPT>

I hope it works for you!
sandi


Follow Ups:



Post a Followup

Name:     
E-Mail:   
Subject:  
Message:

Optional Link URL: 
Link Title:        

      



[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]