Microsoft KB Archive/250316: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
(2 intermediate revisions by the same user not shown)
Line 77: Line 77:


The variable '''document.lastModified''' returns two digits for the year, so that the following script returns '''1900''' for the year instead of '''2000''':
The variable '''document.lastModified''' returns two digits for the year, so that the following script returns '''1900''' for the year instead of '''2000''':
<pre class="codesample">&lt;SCRIPT LANGUAGE=&quot;Javascript&quot;&gt;
<pre class="codesample"><SCRIPT LANGUAGE="Javascript">
&lt;!--//  
<!--//  
var date = new Date(document.lastModified);
var date = new Date(document.lastModified);
document.write(&quot;Last Updated:&quot;+(date.getMonth()+1)+ &quot;/&quot;
document.write("Last Updated:"+(date.getMonth()+1)+ "/"
+ date.getDate()+ &quot;/&quot; + date.getFullYear() + &quot;&quot;);  
+ date.getDate()+ "/" + date.getFullYear() + "");  
//--&gt;
//-->
&lt;/SCRIPT&gt;
</SCRIPT>
                 </pre>
                 </pre>



Latest revision as of 13:51, 21 July 2020

Knowledge Base


Article ID: 250316

Article Last Modified on 9/23/2005



APPLIES TO

  • Microsoft Internet Explorer 4.01 Service Pack 1
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 4.01 Service Pack 1
  • Microsoft Internet Explorer 4.01 Service Pack 2



This article was previously published under Q250316

SYMPTOMS

When you view a Web site that contains JScript using Interenet Explorer 4.01 SP1 or SP2, the year 1900 may be displayed instead of 2000.

RESOLUTION

To resolve this issue, download the Microsoft Internet Explorer 4.0x Mshtml.dll Update from the following Microsoft Web site:

The Mshtml.dll update is version 4.72.3525.600 and is designed to work with Internet Explorer 4.01 Service Pack 1 and Service Pack 2.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

The variable document.lastModified returns two digits for the year, so that the following script returns 1900 for the year instead of 2000:

<SCRIPT LANGUAGE="Javascript">
<!--// 
var date = new Date(document.lastModified);
document.write("Last Updated:"+(date.getMonth()+1)+ "/" 
+ date.getDate()+ "/" + date.getFullYear() + ""); 
//--> 
</SCRIPT>
                

Keywords: kbbug kbfix kbqfe kbnetwork kbdisplay kbhotfixserver KB250316