Yes, I'm still not getting it. 
Basically, I have a wireless camera that sends out an image to the server once every few seconds via FTP. That portion works fine (most of the time). The name of the file is constant "upload.jpg". My website displays this image. The purpose of having the date/time stamp displayed is that I would like know that the camera is still working and sending up-to-date images.
I now have the following 2 sets of codes that work depending on the browser:
The following code displays GMT time for IE 8, Firefox 7 and Opera 11.52. Is there a way to display local time?
<script type="text/javascript">
function LastModUsingHeader(U) {
var X = !window.XMLHttpRequest ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest;
X.open('GET', U, false);
try{ X.send();}catch(y){}
var dt=X.getResponseHeader('Last-Modified');
return (dt);
}
dt=LastModUsingHeader('upload.jpg');
document.write('1. Image uploaded: ' + dt + "<BR>");
</script>
Using the IFrame works for Firefox (correct timezone) and Opera (GMT). IE displays current time when run from server, but correct time when run locally:
<script type="text/javascript">
var DLM=new Date();
function LastModUsingIFrame() {
DLM=window.IFrame1.document.lastModified;
return( DLM );
}
</script>
<iframe name="IFrame1" width="0" height="0" id="IFrame1" src="upload.jpg">(IFrame not supported)</iframe>
<script type="text/javascript">
dt=LastModUsingIFrame();
document.write('3. Image uploaded: ' + dt + "<BR>");
</script>
It was mentioned that I shouldn't use document.write, but using document.getElementById does not work:
<script type="text/javascript">
dt=LastModUsingHeader('upload.jpg');
document.getElementById('ImageDate').innerHTML=dt;
</script>
<p>2. Image uploaded: <b id="ImageDate"></b></p>
Thanks again!