I am using the following code to display a last updated date on my webpage. The problem is the format is in MM/DD/YYYY but I need DD/MM/YYYY to be there.
In HEAD :
<script type="text/javascript">
onload = function()
{
document.getElementById("lastModified").innerHTML = "Last updated : " +
document.lastModified.split(" ")[0];
}
</script>
In body
<span id="lastModified"></span>