<!DOCTYPE html>
<html>
<head>
<title>il metodo getDate() in JavaScript</title>
<script type="text/javascript">
var oggi = new Date();
var giornoMeseOggi = oggi.getDate();
document.write("<p>Oggi è il giorno del mese " + giornoMeseOggi + "</p>");
var timestamp = new Date(390655800000);
var giornoMeseTimestamp = timestamp.getDate();
document.write("<p>Il giorno del mese corrispondente a questo timestamp in millisecondi è " + giornoMeseTimestamp + "</p>");
</script>
</head>
<body>
</body>
</html>