Solved

How do I date stamp a document?

Posted on 1997-12-18
4
164 Views
Last Modified: 2013-12-25
One of the search engines lists us like this:
"Download iBASE, the database and document manager for small businesses   About iBASE   Download   Order now   Product support   OEMs and ISVs... Date Not Available"
How do I get the last modified date to show up?
0
Comment
Question by:mika012097
  • 3
4 Comments
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1856018
The last modified date is retrieved from the server.  I'm not exactly sure why the server doesn't always allow this information to be obtained.  When I use the javascript lastModified function sometimes it gets the correct date and others it doesn't.  

What is in your Meta tags and the first few lines of code on your page?
0
 
LVL 6

Accepted Solution

by:
tecbuilder earned 100 total points
ID: 1856019
I was just thinking that if all you want is to have some code that displays your last modified date on you page then you can use the following code:

<script language="javascript">
<!--
document.write("Last modified " + document.lastModified);
//-->
</script>

This may take care of what you were asking.  If not, then it would be good to see some of your code either shown here or the URL.

0
 

Author Comment

by:mika012097
ID: 1856020
But I don't want the date last modified to show up in my document...
0
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1856021
I apologies for not responding sooner.  I didn't get an email stating that you made a commented to the question and I was going back through all the questions I responded to and noticed that you did make a comment.

If you don't want the last modified date to show on you web page then don't use the script.  The last modifed date exists at the server only.  Does the search engine that you are referring to have 2 fields.  One for the description and one for the last modified date?  If so then what had happened is that when the search engine looked at your page and made a request to your server for the date last modified it received an error in retreiving the date.  So it inserted the Date Not Available into the field.  The only way to change this at the search engine is to have them re-scan your site.

If there is only 1 field then there is something at the very beginning of your page that is doing un-anticipated things.  I cannot tell you specifically without seeing the page.  If you aren't using Meta tags then you need to.  Below is the 2 that you need to include in the heading of your page.  This will solve the problem when your page is re-scanned by the search engine.

<META name="description" content="A description of your site goes here.">
<META name="keywords" content="Your, Sites, Keywords">

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now