|
How to remove time from auto date & time showing script
This is auto date&time shower. I want to remove time from the script below, and also show date without day names, I want to show just 8-19-2008. What code should I remove or add?
<html>
<head>
<title>Last Modified</title>
<script type="text/javascript">
function getLastMod(){
var myFrm = document.getElementById('myIframe');
var lastModif = new Date(myFrm.contentWindow.document.lastModified);
document.getElementById('LastModified').innerHTML = "Prices correct as at: " + lastModif.toLocaleString();
}
</script>
</head>
<body>
<span id="LastModified"></span>
<iframe id="myIframe" onload="getLastMod()" src="prices.txt" style="display:none;">
</iframe>
</body>
</html>
Last edited by tunayx; 08-18-2008 at 11:05 PM..
|