[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

How do I date stamp a document?

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
mika012097
Asked:
mika012097
  • 3
1 Solution
 
tecbuilderCommented:
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
 
tecbuilderCommented:
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
 
mika012097Author Commented:
But I don't want the date last modified to show up in my document...
0
 
tecbuilderCommented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now