Código:
Gracias de antemano <script> var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") function countup(yr,m,d){ var today=new Date() var todayy=today.getYear() if (todayy < 1000) todayy+=1900 var todaym=today.getMonth() var todayd=today.getDate() var todaystring=montharray[todaym]+" "+todayd+", "+todayy var paststring=montharray[m-1]+" "+d+", "+yr var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1) document.write("<br /><br />") document.write("<p><b><center>Esta página se publicó hace "+difference+" días") } //introduce aquí la fecha desde la que quieres contar los días en formato año/mes/día countup(2007,07,03) </script>